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.001944/0.001944, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001929/0.001929, allocations: 153.1 kB / 24.27 MB, free: 168 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 1.601/1.601, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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.282e-06/1.282e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.51e-05/2.638e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01197/0.012, allocations: 8.128 MB / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005355/0.01735, allocations: 2.634 MB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008922/0.01825, allocations: 27.88 kB / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001648/0.01989, allocations: 0.5324 MB / 278.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.02118, allocations: 0.5311 MB / 279.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005357/0.02171, allocations: 259.6 kB / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001837/0.02355, allocations: 1.571 MB / 281 MB, free: 9 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000674/0.02422, allocations: 371.3 kB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.02543, allocations: 0.8768 MB / 282.2 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007506/0.02618, allocations: 486.5 kB / 282.7 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002019/0.02639, allocations: 140 kB / 282.9 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003665/0.02675, allocations: 176 kB / 283 MB, free: 6.949 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002798/0.02703, allocations: 294.9 kB / 283.3 MB, free: 6.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005708/0.0276, allocations: 474.8 kB / 283.8 MB, free: 6.195 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002234/0.02984, allocations: 1.768 MB / 285.5 MB, free: 4.422 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.02984, allocations: 4 kB / 285.5 MB, free: 4.418 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.02984, allocations: 0 / 285.5 MB, free: 4.418 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.02986, allocations: 3.938 kB / 285.6 MB, free: 4.414 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.00286/0.03272, allocations: 1.64 MB / 287.2 MB, free: 2.734 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.03276, allocations: 12.03 kB / 287.2 MB, free: 2.723 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007709/0.03353, allocations: 276 kB / 287.5 MB, free: 2.453 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001319/0.03485, allocations: 0.7115 MB / 288.2 MB, free: 1.715 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.711e-05/0.03493, allocations: 74 kB / 288.3 MB, free: 1.641 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001554/0.03508, allocations: 96 kB / 288.3 MB, free: 1.547 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.03697, allocations: 1.121 MB / 289.5 MB, free: 376 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.03701, allocations: 3.953 kB / 289.5 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.933e-05/0.0371, allocations: 40 kB / 289.5 MB, free: 332 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.841e-05/0.03712, allocations: 24 kB / 289.5 MB, free: 308 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.107/0.1442, allocations: 0.6126 MB / 290.1 MB, free: 32.65 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00732/0.1515, allocations: 4.733 MB / 294.9 MB, free: 29.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008256/0.1523, allocations: 352.4 kB / 295.2 MB, free: 29.72 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007557/0.1531, allocations: 268.2 kB / 295.5 MB, free: 29.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.539e-05/0.1531, allocations: 9.203 kB / 295.5 MB, free: 29.65 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.1531, allocations: 46.67 kB / 295.5 MB, free: 29.6 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 3.387e-06/0.1531, allocations: 0 / 295.5 MB, free: 29.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.003723/0.1569, allocations: 1.321 MB / 296.9 MB, free: 28.93 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.1569, allocations: 81.73 kB / 296.9 MB, free: 28.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00182/0.1587, allocations: 1.015 MB / 298 MB, free: 28.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.927e-05/0.1588, allocations: 30.89 kB / 298 MB, free: 28.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005336/0.1593, allocations: 0.6831 MB / 298.7 MB, free: 27.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.1595, allocations: 183 kB / 298.9 MB, free: 27.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002825/0.1598, allocations: 161 kB / 299 MB, free: 27.61 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002644/0.16, allocations: 0.6154 MB / 299.6 MB, free: 27.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005262/0.1605, allocations: 165.1 kB / 299.8 MB, free: 27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006666/0.1612, allocations: 0.6155 MB / 300.4 MB, free: 26.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.1624, allocations: 0.8155 MB / 301.2 MB, free: 25.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/0.1624, allocations: 4.156 kB / 301.2 MB, free: 25.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002084/0.1645, allocations: 0.8064 MB / 302 MB, free: 25.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.031e-05/0.1645, allocations: 13 kB / 302 MB, free: 25.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/0.1646, allocations: 10.38 kB / 302 MB, free: 25.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004261/0.165, allocations: 94.62 kB / 302.1 MB, free: 25.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007597/0.1658, allocations: 153.8 kB / 302.3 MB, free: 25.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.1684, allocations: 4.029 MB / 306.3 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007745/0.1691, allocations: 35.7 kB / 306.4 MB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-05/0.1692, allocations: 32.36 kB / 306.4 MB, free: 21.28 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.0004974/0.1697, allocations: 309.3 kB / 306.7 MB, free: 21.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002191/0.1699, allocations: 107.6 kB / 306.8 MB, free: 20.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001227/0.1711, allocations: 493.1 kB / 307.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.1712, allocations: 5.5 kB / 307.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.1712, allocations: 1.375 kB / 307.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.1712, allocations: 2.859 kB / 307.3 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003243/0.1744, allocations: 1.561 MB / 308.8 MB, free: 19.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.1744, allocations: 0 / 308.8 MB, free: 19.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004088/0.1748, allocations: 73.75 kB / 308.9 MB, free: 19.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003228/0.1752, allocations: 85.95 kB / 309 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.1752, allocations: 9.25 kB / 309 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.1775, allocations: 4.004 MB / 313 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.1775, allocations: 5.688 kB / 313 MB, free: 15.87 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.1792, allocations: 0.8718 MB / 313.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004078/0.1796, allocations: 118.5 kB / 314 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000171/0.1797, allocations: 12 kB / 314 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006216/0.1804, allocations: 23.52 kB / 314 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.1805, allocations: 45.22 kB / 314.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.1805, allocations: 16 kB / 314.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001014/0.1815, allocations: 0.6156 MB / 314.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1815, allocations: 0 / 314.7 MB, free: 14.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00131/0.1828, allocations: 208 kB / 314.9 MB, free: 14.32 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.00022/0.1831, allocations: 117.5 kB / 315 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.1845, allocations: 0.8338 MB / 315.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.1845, allocations: 4 kB / 315.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007795/0.1853, allocations: 0.5485 MB / 316.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001459/0.1867, allocations: 215 kB / 316.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.1901, allocations: 1.721 MB / 318.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004523/0.1906, allocations: 422.4 kB / 318.8 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004581/0.191, allocations: 103 kB / 318.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.1912, allocations: 52.5 kB / 318.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of SimCode: time 1.001e-06/0.1912, allocations: 0 / 318.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of Templates: time 0.01618/0.2074, allocations: 10.32 MB / 329.2 MB, free: 204 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.122829444007948]