Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9492/0.9492, allocations: 173.4 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.234e-06/2.234e-06, allocations: 3.938 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.737e-05/1.961e-05, allocations: 6.312 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007381/0.0074, allocations: 8.194 MB / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004329/0.01173, allocations: 2.634 MB / 278.8 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008477/0.01258, allocations: 31.88 kB / 278.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001333/0.01391, allocations: 0.5323 MB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009864/0.0149, allocations: 0.5233 MB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004641/0.01536, allocations: 267.6 kB / 280.2 MB, free: 10.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.01679, allocations: 1.567 MB / 281.7 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005228/0.01732, allocations: 379.3 kB / 282.1 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009421/0.01826, allocations: 0.8729 MB / 283 MB, free: 7.352 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000563/0.01882, allocations: 486.5 kB / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001528/0.01898, allocations: 140 kB / 283.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000272/0.01925, allocations: 179.9 kB / 283.8 MB, free: 6.562 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001493/0.0194, allocations: 294.9 kB / 284.1 MB, free: 6.273 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003638/0.01976, allocations: 478.8 kB / 284.5 MB, free: 5.805 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009835/0.02074, allocations: 0.9495 MB / 285.5 MB, free: 4.852 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.02075, allocations: 0 / 285.5 MB, free: 4.852 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.02075, allocations: 0 / 285.5 MB, free: 4.852 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.469e-05/0.02078, allocations: 3.984 kB / 285.5 MB, free: 4.848 MB / 266.7 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.001751/0.02253, allocations: 1.534 MB / 287 MB, free: 3.273 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.02257, allocations: 8.031 kB / 287 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005011/0.02307, allocations: 276 kB / 287.3 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008657/0.02394, allocations: 0.7043 MB / 288 MB, free: 2.262 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.69e-05/0.02398, allocations: 70 kB / 288.1 MB, free: 2.191 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.02409, allocations: 100 kB / 288.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009317/0.02502, allocations: 0.8317 MB / 289 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.02505, allocations: 7.953 kB / 289 MB, free: 1.195 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.154e-05/0.0251, allocations: 40 kB / 289 MB, free: 1.156 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.02512, allocations: 24 kB / 289.1 MB, free: 1.133 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005451/0.02566, allocations: 359.6 kB / 289.4 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1291/0.1548, allocations: 3.637 MB / 293.1 MB, free: 21.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005819/0.1554, allocations: 289 kB / 293.3 MB, free: 21.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004384/0.1558, allocations: 206.1 kB / 293.5 MB, free: 21.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.744e-05/0.1559, allocations: 7.672 kB / 293.6 MB, free: 21.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.1559, allocations: 40.08 kB / 293.6 MB, free: 21.1 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 4.368e-06/0.1559, allocations: 0 / 293.6 MB, free: 21.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.00227/0.1582, allocations: 1.057 MB / 294.6 MB, free: 20.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.1582, allocations: 82.28 kB / 294.7 MB, free: 20.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009626/0.1592, allocations: 0.7616 MB / 295.5 MB, free: 20.42 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.1592, allocations: 37.22 kB / 295.5 MB, free: 20.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003515/0.1595, allocations: 0.6474 MB / 296.2 MB, free: 20.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.1596, allocations: 167.8 kB / 296.3 MB, free: 20 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.1598, allocations: 138 kB / 296.5 MB, free: 19.97 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.16, allocations: 0.5683 MB / 297 MB, free: 19.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.1602, allocations: 87.48 kB / 297.1 MB, free: 19.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003447/0.1605, allocations: 0.5247 MB / 297.6 MB, free: 18.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005658/0.1611, allocations: 0.6338 MB / 298.3 MB, free: 18.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.1611, allocations: 10.41 kB / 298.3 MB, free: 18.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00105/0.1621, allocations: 0.6506 MB / 298.9 MB, free: 18.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.1621, allocations: 9.625 kB / 299 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.1622, allocations: 13.08 kB / 299 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002954/0.1625, allocations: 72.3 kB / 299 MB, free: 18.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004219/0.1629, allocations: 155.4 kB / 299.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.1647, allocations: 3.873 MB / 303.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000468/0.1651, allocations: 30.33 kB / 303.1 MB, free: 14.56 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.1652, allocations: 31.44 kB / 303.1 MB, free: 14.56 MB / 266.7 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.0002733/0.1655, allocations: 212 kB / 303.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.1656, allocations: 100.1 kB / 303.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006704/0.1663, allocations: 381.3 kB / 303.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1663, allocations: 4.75 kB / 303.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.1663, allocations: 1.812 kB / 303.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1663, allocations: 3.359 kB / 303.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.1681, allocations: 1.182 MB / 305 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.1681, allocations: 5.781 kB / 305 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002516/0.1683, allocations: 70.77 kB / 305.1 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002101/0.1685, allocations: 70.98 kB / 305.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.922e-05/0.1686, allocations: 8.297 kB / 305.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.17, allocations: 3.852 MB / 309 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.17, allocations: 2.812 kB / 309 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007837/0.1708, allocations: 0.6698 MB / 309.7 MB, free: 9.555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.171, allocations: 121.7 kB / 309.8 MB, free: 9.477 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.425e-05/0.171, allocations: 9.406 kB / 309.8 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002697/0.1713, allocations: 26.02 kB / 309.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.1714, allocations: 41.44 kB / 309.9 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-05/0.1714, allocations: 15.47 kB / 309.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005652/0.172, allocations: 485.2 kB / 310.4 MB, free: 9.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.172, allocations: 4 kB / 310.4 MB, free: 9.246 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008687/0.1729, allocations: 209.1 kB / 310.6 MB, free: 9.227 MB / 266.7 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.0002279/0.1731, allocations: 121.2 kB / 310.7 MB, free: 9.133 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008894/0.174, allocations: 0.6834 MB / 311.4 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.174, allocations: 0 / 311.4 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004407/0.1744, allocations: 0.4973 MB / 311.9 MB, free: 8.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008302/0.1753, allocations: 210 kB / 312.1 MB, free: 8.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002802/0.1781, allocations: 1.648 MB / 313.7 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.1782, allocations: 172.1 kB / 313.9 MB, free: 7.203 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003121/0.1785, allocations: 99.59 kB / 314 MB, free: 7.172 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.1786, allocations: 59.7 kB / 314 MB, free: 7.164 MB / 266.7 MB Notification: Performance of SimCode: time 1.894e-06/0.1786, allocations: 0 / 314 MB, free: 7.164 MB / 266.7 MB Notification: Performance of Templates: time 0.01579/0.1944, allocations: 10.33 MB / 324.4 MB, free: 292 kB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.28306637192145]