Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001887/0.001887, allocations: 95.61 kB / 20.96 MB, free: 3.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.6/1.6, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.781e-05/2.924e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01188/0.01191, allocations: 8.144 MB / 280.5 MB, free: 9.645 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005429/0.01734, allocations: 2.684 MB / 283.1 MB, free: 6.953 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006913/0.01803, allocations: 27.88 kB / 283.2 MB, free: 6.926 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001708/0.01974, allocations: 0.5401 MB / 283.7 MB, free: 6.383 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001228/0.02097, allocations: 0.5195 MB / 284.2 MB, free: 5.859 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005702/0.02154, allocations: 279.5 kB / 284.5 MB, free: 5.586 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0019/0.02344, allocations: 1.567 MB / 286.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006946/0.02413, allocations: 367.3 kB / 286.4 MB, free: 3.625 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001284/0.02542, allocations: 0.8846 MB / 287.3 MB, free: 2.738 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007596/0.02618, allocations: 490.5 kB / 287.8 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000203/0.02638, allocations: 140 kB / 287.9 MB, free: 2.121 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003838/0.02676, allocations: 184 kB / 288.1 MB, free: 1.941 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002829/0.02705, allocations: 294.8 kB / 288.4 MB, free: 1.652 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005907/0.02764, allocations: 474.9 kB / 288.9 MB, free: 1.188 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1179/0.1455, allocations: 1.768 MB / 290.6 MB, free: 18.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1455, allocations: 1.25 kB / 290.6 MB, free: 18.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1455, allocations: 0.75 kB / 290.6 MB, free: 18.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.507e-05/0.1456, allocations: 0 / 290.6 MB, free: 18.71 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.00264/0.1482, allocations: 1.637 MB / 292.3 MB, free: 17.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1483, allocations: 9.844 kB / 292.3 MB, free: 17.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008486/0.1491, allocations: 282.2 kB / 292.6 MB, free: 17.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.1503, allocations: 0.7203 MB / 293.3 MB, free: 17.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.659e-05/0.1503, allocations: 76.64 kB / 293.4 MB, free: 17.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.1505, allocations: 106.9 kB / 293.5 MB, free: 17.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.1522, allocations: 1.114 MB / 294.6 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/0.1523, allocations: 3.469 kB / 294.6 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.083e-05/0.1523, allocations: 43.22 kB / 294.6 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.1524, allocations: 23.03 kB / 294.6 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/0.1535, allocations: 0.6179 MB / 295.3 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005533/0.1591, allocations: 4.737 MB / 300 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006194/0.1597, allocations: 366.8 kB / 300.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007703/0.1605, allocations: 261.5 kB / 300.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.624e-05/0.1605, allocations: 7.969 kB / 300.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.1605, allocations: 42.67 kB / 300.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=41): time 2.404e-06/0.1605, allocations: 0 / 300.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.003017/0.1636, allocations: 1.324 MB / 302 MB, free: 13.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.469e-05/0.1636, allocations: 82.53 kB / 302.1 MB, free: 13.76 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001245/0.1648, allocations: 1.016 MB / 303.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.1649, allocations: 32.23 kB / 303.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003165/0.1652, allocations: 0.6854 MB / 303.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.132e-05/0.1653, allocations: 177.2 kB / 304 MB, free: 12.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.1655, allocations: 163.9 kB / 304.1 MB, free: 12.47 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.1656, allocations: 0.6219 MB / 304.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.1659, allocations: 165.4 kB / 304.9 MB, free: 11.86 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004427/0.1664, allocations: 0.6198 MB / 305.5 MB, free: 11.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007662/0.1671, allocations: 0.8088 MB / 306.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.1671, allocations: 4.719 kB / 306.3 MB, free: 10.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00115/0.1683, allocations: 0.8 MB / 307.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.1683, allocations: 7.5 kB / 307.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.1683, allocations: 13.5 kB / 307.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/0.1686, allocations: 96.8 kB / 307.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.1691, allocations: 149.9 kB / 307.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.1708, allocations: 4.033 MB / 311.4 MB, free: 6.305 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005519/0.1713, allocations: 32.98 kB / 311.5 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.056e-05/0.1714, allocations: 42.75 kB / 311.5 MB, free: 6.277 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.0003208/0.1717, allocations: 303.1 kB / 311.8 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.1718, allocations: 98.7 kB / 311.9 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008167/0.1726, allocations: 497.8 kB / 312.4 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1726, allocations: 3.594 kB / 312.4 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1726, allocations: 3.156 kB / 312.4 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.1726, allocations: 3.75 kB / 312.4 MB, free: 5.758 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00188/0.1745, allocations: 1.55 MB / 314 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1745, allocations: 2.016 kB / 314 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002959/0.1748, allocations: 69.67 kB / 314 MB, free: 4.887 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002043/0.175, allocations: 82.16 kB / 314.1 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.1751, allocations: 10.41 kB / 314.1 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001569/0.1766, allocations: 4.009 MB / 318.1 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1766, allocations: 7 kB / 318.1 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009907/0.1776, allocations: 0.861 MB / 319 MB, free: 156 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002272/0.1779, allocations: 116.5 kB / 319.1 MB, free: 56 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.573e-05/0.1779, allocations: 15.94 kB / 319.1 MB, free: 40 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003982/0.1783, allocations: 27.64 kB / 319.1 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.463e-05/0.1784, allocations: 36.92 kB / 319.2 MB, free: 0 / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.299e-05/0.1785, allocations: 15.38 kB / 319.2 MB, free: 0 / 266.7 MB Notification: Performance of sorting global known variables: time 0.001083/0.1796, allocations: 0.6177 MB / 319.8 MB, free: 15.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1796, allocations: 0 / 319.8 MB, free: 15.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009089/0.1805, allocations: 211.9 kB / 320 MB, free: 15.25 MB / 282.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.0002285/0.1807, allocations: 125.8 kB / 320.1 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.1821, allocations: 0.8414 MB / 321 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1821, allocations: 0 / 321 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007856/0.1829, allocations: 0.5658 MB / 321.6 MB, free: 13.78 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.1839, allocations: 211.7 kB / 321.8 MB, free: 13.59 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.187, allocations: 1.724 MB / 323.5 MB, free: 11.81 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.1876, allocations: 429.9 kB / 323.9 MB, free: 11.37 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003732/0.188, allocations: 98.75 kB / 324 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.1881, allocations: 56.48 kB / 324.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1881, allocations: 0 / 324.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of Templates: time 0.02231/0.2104, allocations: 10.33 MB / 334.4 MB, free: 1.145 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.040832865983248]