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.001146/0.001146, allocations: 78.28 kB / 21.42 MB, free: 3.07 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.001146/0.001146, allocations: 150 kB / 24.8 MB, free: 9.336 MB / 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.9183/0.9183, allocations: 173.4 MB / 201.4 MB, free: 9.227 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 1.202e-06/1.202e-06, allocations: 0 / 268.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.221e-05/1.342e-05, allocations: 6.25 kB / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.006232/0.006245, allocations: 7.968 MB / 276.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007042/0.01329, allocations: 2.63 MB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005529/0.01384, allocations: 27.88 kB / 279.1 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004257/0.0181, allocations: 0.5323 MB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009035/0.019, allocations: 0.5233 MB / 280.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.0194, allocations: 263.6 kB / 280.4 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004259/0.02366, allocations: 1.57 MB / 281.9 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005206/0.02418, allocations: 371.3 kB / 282.3 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009255/0.0251, allocations: 0.8807 MB / 283.2 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005845/0.02569, allocations: 482.6 kB / 283.7 MB, free: 6.871 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.02585, allocations: 140 kB / 283.8 MB, free: 6.734 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003289/0.02913, allocations: 175.9 kB / 284 MB, free: 6.562 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.0293, allocations: 294.8 kB / 284.2 MB, free: 6.273 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003764/0.02968, allocations: 474.8 kB / 284.7 MB, free: 5.809 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009662/0.03065, allocations: 0.9418 MB / 285.7 MB, free: 4.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.03065, allocations: 0 / 285.7 MB, free: 4.863 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.03065, allocations: 0 / 285.7 MB, free: 4.863 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.03066, allocations: 0 / 285.7 MB, free: 4.863 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.004746/0.03541, allocations: 1.546 MB / 287.2 MB, free: 3.277 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.03545, allocations: 12.03 kB / 287.2 MB, free: 3.266 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005296/0.03598, allocations: 276 kB / 287.5 MB, free: 2.996 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008008/0.03678, allocations: 0.6731 MB / 288.2 MB, free: 2.293 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.421e-05/0.03683, allocations: 74 kB / 288.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.03696, allocations: 99.95 kB / 288.3 MB, free: 2.121 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008978/0.03785, allocations: 0.773 MB / 289.1 MB, free: 1.289 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.03788, allocations: 3.938 kB / 289.1 MB, free: 1.285 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003069/0.04095, allocations: 44 kB / 289.1 MB, free: 1.242 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.04097, allocations: 27.98 kB / 289.2 MB, free: 1.215 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.04139, allocations: 277.7 kB / 289.4 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1169/0.1583, allocations: 3.679 MB / 293.1 MB, free: 21.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004366/0.1587, allocations: 257.5 kB / 293.4 MB, free: 21.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.159, allocations: 185.4 kB / 293.6 MB, free: 21.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.159, allocations: 10.94 kB / 293.6 MB, free: 21.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.159, allocations: 39.44 kB / 293.6 MB, free: 21.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 1.873e-06/0.159, allocations: 0.9375 kB / 293.6 MB, free: 21.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.001367/0.1604, allocations: 0.8516 MB / 294.5 MB, free: 20.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.453e-05/0.1604, allocations: 83.2 kB / 294.5 MB, free: 20.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000611/0.161, allocations: 0.7456 MB / 295.3 MB, free: 20.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.161, allocations: 31.3 kB / 295.3 MB, free: 20.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/0.1613, allocations: 0.6555 MB / 296 MB, free: 20.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.069e-05/0.1614, allocations: 170.9 kB / 296.1 MB, free: 20.1 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.1615, allocations: 146 kB / 296.3 MB, free: 20.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1616, allocations: 0.5803 MB / 296.9 MB, free: 19.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.639e-05/0.1617, allocations: 67.36 kB / 296.9 MB, free: 19.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.1619, allocations: 0.5061 MB / 297.4 MB, free: 19.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.1623, allocations: 0.6045 MB / 298 MB, free: 18.5 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.1623, allocations: 2.5 kB / 298 MB, free: 18.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006194/0.1629, allocations: 0.6059 MB / 298.6 MB, free: 18.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1629, allocations: 13.69 kB / 298.7 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.163, allocations: 9.719 kB / 298.7 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001629/0.1631, allocations: 77.47 kB / 298.7 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002859/0.1634, allocations: 149.8 kB / 298.9 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.1645, allocations: 3.818 MB / 302.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.1648, allocations: 36.52 kB / 302.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.1648, allocations: 26.75 kB / 302.8 MB, free: 14.71 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.0001534/0.165, allocations: 210.3 kB / 303 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.253e-05/0.1651, allocations: 98.45 kB / 303.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000367/0.1655, allocations: 350.3 kB / 303.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.666e-06/0.1655, allocations: 4.125 kB / 303.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.1655, allocations: 2.516 kB / 303.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1655, allocations: 1.875 kB / 303.4 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1665, allocations: 1.03 MB / 304.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.1665, allocations: 1.828 kB / 304.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.1667, allocations: 68.97 kB / 304.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.1668, allocations: 71.09 kB / 304.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.1669, allocations: 11.88 kB / 304.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009446/0.1678, allocations: 3.801 MB / 308.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1678, allocations: 6.734 kB / 308.4 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005076/0.1683, allocations: 0.6267 MB / 309 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.1685, allocations: 120.6 kB / 309.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/0.1685, allocations: 11.8 kB / 309.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.1687, allocations: 25.89 kB / 309.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.15e-05/0.1688, allocations: 37.81 kB / 309.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.1688, allocations: 14.91 kB / 309.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003498/0.1691, allocations: 449.5 kB / 309.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1691, allocations: 1.188 kB / 309.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005927/0.1697, allocations: 213.3 kB / 309.9 MB, free: 9.793 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.0001474/0.1699, allocations: 122.7 kB / 310 MB, free: 9.707 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005175/0.1704, allocations: 0.6404 MB / 310.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1704, allocations: 1 kB / 310.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.1707, allocations: 0.493 MB / 311.1 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.1712, allocations: 203.9 kB / 311.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.1731, allocations: 1.642 MB / 313 MB, free: 8.055 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001066/0.1732, allocations: 176.3 kB / 313.2 MB, free: 7.973 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002402/0.1735, allocations: 101.6 kB / 313.3 MB, free: 7.938 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003011/0.1738, allocations: 274.8 kB / 313.5 MB, free: 7.871 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1738, allocations: 0 / 313.5 MB, free: 7.871 MB / 266.7 MB Notification: Performance of Templates: time 0.0132/0.187, allocations: 11.13 MB / 324.7 MB, free: 0.5625 MB / 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.0495233042165637]