Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 103.3 kB / 18.35 MB, free: 4.645 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.001739/0.00174, allocations: 192 kB / 19.29 MB, free: 3.715 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.701/1.701, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001332/0.001332, allocations: 51.92 kB / 282.1 MB, free: 2.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1087, allocations: 46.64 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01422/0.123, allocations: 11.69 MB / 340.4 MB, free: 8.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006765/0.1298, allocations: 3.216 MB / 343.6 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001672/0.1316, allocations: 39.88 kB / 343.7 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001989/0.1336, allocations: 0.6479 MB / 344.3 MB, free: 4.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002266/0.1358, allocations: 0.6626 MB / 345 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009176/0.1368, allocations: 411.5 kB / 345.4 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002695/0.1395, allocations: 2.238 MB / 347.6 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001355/0.1409, allocations: 0.9928 MB / 348.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001358/0.1422, allocations: 0.8405 MB / 349.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.1435, allocations: 0.9177 MB / 350.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003163/0.1438, allocations: 216 kB / 350.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004939/0.1443, allocations: 256 kB / 350.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004225/0.1447, allocations: 430.5 kB / 351.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009818/0.1457, allocations: 1.015 MB / 352.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002642/0.1484, allocations: 2.675 MB / 355 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1484, allocations: 0 / 355 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1484, allocations: 4 kB / 355 MB, free: 9.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.273e-05/0.1484, allocations: 0 / 355 MB, free: 9.383 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003786/0.1522, allocations: 2.064 MB / 357 MB, free: 7.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.1523, allocations: 12.02 kB / 357 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007955/0.1531, allocations: 258.5 kB / 357.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001972/0.1551, allocations: 1.044 MB / 358.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.168e-05/0.1552, allocations: 111.5 kB / 358.4 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000205/0.1554, allocations: 159.8 kB / 358.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/0.1582, allocations: 1.487 MB / 360.1 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.384e-05/0.1582, allocations: 11.91 kB / 360.1 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000124/0.1584, allocations: 64 kB / 360.2 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.134e-05/0.1584, allocations: 36 kB / 360.2 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/0.1603, allocations: 0.9785 MB / 361.2 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008968/0.1693, allocations: 6.52 MB / 367.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008048/0.1702, allocations: 400.1 kB / 368.1 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004216/0.1706, allocations: 222 kB / 368.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.635e-05/0.1707, allocations: 8.438 kB / 368.3 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005409/0.1712, allocations: 276.8 kB / 368.6 MB, free: 11.19 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.625e-06/0.1712, allocations: 0 / 368.6 MB, free: 11.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003428/0.1747, allocations: 1.754 MB / 370.3 MB, free: 9.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.552e-05/0.1748, allocations: 166.8 kB / 370.5 MB, free: 9.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.1766, allocations: 1.273 MB / 371.8 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.661e-05/0.1766, allocations: 37.7 kB / 371.8 MB, free: 7.809 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007409/0.1774, allocations: 0.8751 MB / 372.7 MB, free: 6.922 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000159/0.1776, allocations: 205.2 kB / 372.9 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003121/0.1779, allocations: 218.6 kB / 373.1 MB, free: 6.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.1781, allocations: 357.9 kB / 373.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004483/0.1785, allocations: 226.5 kB / 373.7 MB, free: 5.922 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008999/0.1794, allocations: 0.8112 MB / 374.5 MB, free: 4.832 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.1809, allocations: 1.11 MB / 375.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.1809, allocations: 8 kB / 375.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002061/0.183, allocations: 1.169 MB / 376.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.117e-05/0.183, allocations: 41.69 kB / 376.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.33e-05/0.183, allocations: 20.14 kB / 376.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000235/0.1833, allocations: 66.33 kB / 376.9 MB, free: 2.113 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007586/0.1841, allocations: 275.5 kB / 377.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2121/0.3961, allocations: 2.765 MB / 379.9 MB, free: 49.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001721/0.3979, allocations: 66.67 kB / 380 MB, free: 49.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.398, allocations: 63.84 kB / 380 MB, free: 49.81 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007974/0.3988, allocations: 357.7 kB / 380.4 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003333/0.3992, allocations: 131.5 kB / 380.5 MB, free: 49.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001294/0.4005, allocations: 0.5545 MB / 381.1 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/0.4005, allocations: 8.125 kB / 381.1 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4005, allocations: 0.8438 kB / 381.1 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.4005, allocations: 3.484 kB / 381.1 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004025/0.4046, allocations: 1.865 MB / 383 MB, free: 49.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.4046, allocations: 6.844 kB / 383 MB, free: 49.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000493/0.4051, allocations: 102.5 kB / 383.1 MB, free: 49.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002125/0.4053, allocations: 56.81 kB / 383.1 MB, free: 48.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.895e-05/0.4054, allocations: 15.97 kB / 383.1 MB, free: 48.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.4072, allocations: 2.74 MB / 385.9 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.4072, allocations: 5.062 kB / 385.9 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.4092, allocations: 0.9225 MB / 386.8 MB, free: 45.69 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006245/0.4098, allocations: 259.4 kB / 387.1 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/0.41, allocations: 21.39 kB / 387.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005459/0.4106, allocations: 30.56 kB / 387.1 MB, free: 45.53 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.4107, allocations: 45.28 kB / 387.2 MB, free: 45.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.4108, allocations: 28.03 kB / 387.2 MB, free: 45.52 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001567/0.4123, allocations: 0.8486 MB / 388 MB, free: 45.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4123, allocations: 0 / 388 MB, free: 45.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001538/0.4139, allocations: 304 kB / 388.3 MB, free: 45.13 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0002556/0.4141, allocations: 132.3 kB / 388.5 MB, free: 45.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.4159, allocations: 0.9297 MB / 389.4 MB, free: 44.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.4159, allocations: 4.5 kB / 389.4 MB, free: 44.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006766/0.4166, allocations: 468.1 kB / 389.8 MB, free: 44.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001563/0.4181, allocations: 342.9 kB / 390.2 MB, free: 44.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004223/0.4224, allocations: 2.516 MB / 392.7 MB, free: 42.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008944/0.4233, allocations: 1.175 MB / 393.9 MB, free: 41.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008558/0.4242, allocations: 166 kB / 394 MB, free: 41.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002048/0.4244, allocations: 87.77 kB / 394.1 MB, free: 41.9 MB / 318.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4244, allocations: 4 kB / 394.1 MB, free: 41.89 MB / 318.1 MB Notification: Performance of Templates: time 0.02625/0.4506, allocations: 14.93 MB / 409.1 MB, free: 33.04 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches