Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 101.5 kB / 17.72 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001191, allocations: 192 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07196/0.07318, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.1512/0.2244, allocations: 8.184 MB / 382.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004114/0.2286, allocations: 2.724 MB / 385.6 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008219/0.2295, allocations: 24.44 kB / 385.6 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.2309, allocations: 0.5635 MB / 386.1 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00127/0.2322, allocations: 478.5 kB / 386.6 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005346/0.2327, allocations: 261.5 kB / 386.9 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.2341, allocations: 1.502 MB / 388.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007039/0.2348, allocations: 0.5764 MB / 388.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007209/0.2356, allocations: 0.5761 MB / 389.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006044/0.2362, allocations: 0.6086 MB / 390.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.2364, allocations: 140.1 kB / 390.3 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000347/0.2367, allocations: 177.1 kB / 390.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.2369, allocations: 288.8 kB / 390.7 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000516/0.2374, allocations: 0.6701 MB / 391.4 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001641/0.2391, allocations: 1.752 MB / 393.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2391, allocations: 0 / 393.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2391, allocations: 0 / 393.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.2391, allocations: 5.188 kB / 393.1 MB, free: 4.219 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002224/0.2413, allocations: 1.48 MB / 394.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.2414, allocations: 10.78 kB / 394.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.2415, allocations: 151.8 kB / 394.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006404/0.2422, allocations: 195.2 kB / 395 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.2433, allocations: 0.7577 MB / 395.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.448e-05/0.2433, allocations: 69.53 kB / 395.8 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001192/0.2435, allocations: 105.5 kB / 395.9 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.2449, allocations: 0.9418 MB / 396.8 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.245, allocations: 10.7 kB / 396.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.148e-05/0.245, allocations: 37.16 kB / 396.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.846e-05/0.2451, allocations: 28.53 kB / 396.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.2462, allocations: 0.6464 MB / 397.6 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004509/0.2507, allocations: 3.915 MB / 401.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006426/0.2514, allocations: 435.5 kB / 401.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005714/0.252, allocations: 289.9 kB / 402.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.252, allocations: 8.094 kB / 402.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.2521, allocations: 38.22 kB / 402.2 MB, free: 14.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.254e-06/0.2521, allocations: 1.312 kB / 402.2 MB, free: 14.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.002847/0.2549, allocations: 1.547 MB / 403.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.104e-05/0.255, allocations: 85.62 kB / 403.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.2561, allocations: 0.8342 MB / 404.7 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/0.2561, allocations: 39.89 kB / 404.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/0.2565, allocations: 0.5639 MB / 405.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.2566, allocations: 166.7 kB / 405.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/0.2568, allocations: 129.5 kB / 405.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2569, allocations: 335.7 kB / 405.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003376/0.2573, allocations: 172.7 kB / 406.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004963/0.2578, allocations: 475.9 kB / 406.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008623/0.2587, allocations: 0.6901 MB / 407.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.2587, allocations: 7.469 kB / 407.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00134/0.26, allocations: 0.7919 MB / 408 MB, free: 10.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.26, allocations: 9.219 kB / 408.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.2601, allocations: 9.406 kB / 408.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002531/0.2603, allocations: 82.94 kB / 408.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.2608, allocations: 163.5 kB / 408.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/0.263, allocations: 3.135 MB / 411.4 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006416/0.2637, allocations: 38.3 kB / 411.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.2637, allocations: 31.47 kB / 411.5 MB, free: 7.039 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003849/0.2641, allocations: 269.8 kB / 411.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.2643, allocations: 93.42 kB / 411.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009255/0.2652, allocations: 0.5022 MB / 412.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2652, allocations: 5.094 kB / 412.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.2652, allocations: 1 kB / 412.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2652, allocations: 1.156 kB / 412.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.2674, allocations: 1.469 MB / 413.8 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.2674, allocations: 2.188 kB / 413.8 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.2677, allocations: 76.95 kB / 413.9 MB, free: 5.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002046/0.2679, allocations: 72.27 kB / 414 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.2679, allocations: 9.625 kB / 414 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002229/0.2702, allocations: 3.133 MB / 417.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.2702, allocations: 7.531 kB / 417.1 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.2715, allocations: 0.7914 MB / 417.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003016/0.2718, allocations: 206.4 kB / 418.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.2719, allocations: 15.12 kB / 418.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004267/0.2724, allocations: 33.34 kB / 418.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.668e-05/0.2725, allocations: 34.33 kB / 418.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.337e-05/0.2725, allocations: 15.31 kB / 418.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007254/0.2732, allocations: 0.5741 MB / 418.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2732, allocations: 0 / 418.8 MB, free: 1.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008637/0.2741, allocations: 206.1 kB / 419 MB, free: 1.004 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001538/0.2756, allocations: 1.37 MB / 420.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.2768, allocations: 0.708 MB / 421.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.2768, allocations: 5.688 kB / 421.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006077/0.2774, allocations: 453 kB / 421.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.2785, allocations: 232.5 kB / 421.8 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009837/0.2884, allocations: 7.432 MB / 429.2 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005589/0.289, allocations: 1.009 MB / 430.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004143/0.2894, allocations: 111.3 kB / 430.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004314/0.2898, allocations: 391.3 kB / 430.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2898, allocations: 0 / 430.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04698/0.3368, allocations: 19.71 MB / 450.4 MB, free: 2.258 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.02, allocations: 5.438 kB / 450.4 MB, free: 2.254 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches