Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.001873/0.001873, allocations: 92.62 kB / 20.96 MB, free: 3.477 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.001877/0.001877, allocations: 153.4 kB / 24.26 MB, free: 184 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.447/1.447, allocations: 173.4 MB / 200.8 MB, free: 9.332 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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.506e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00945/0.009475, allocations: 6.368 MB / 273.7 MB, free: 340 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004418/0.01389, allocations: 2.177 MB / 275.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007108/0.0146, allocations: 23.88 kB / 275.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.01601, allocations: 488.8 kB / 276.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.01715, allocations: 432.7 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.01759, allocations: 199.8 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.01936, allocations: 1.249 MB / 278.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006091/0.01997, allocations: 316.5 kB / 278.5 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.021, allocations: 0.7015 MB / 279.2 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000536/0.02154, allocations: 362.8 kB / 279.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001532/0.02169, allocations: 112 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003162/0.02201, allocations: 155.9 kB / 279.9 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.02223, allocations: 231.1 kB / 280.1 MB, free: 9.887 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004496/0.02268, allocations: 379.1 kB / 280.5 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.02446, allocations: 1.429 MB / 281.9 MB, free: 8.082 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.02447, allocations: 0 / 281.9 MB, free: 8.082 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.02447, allocations: 0 / 281.9 MB, free: 8.082 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.02449, allocations: 7.938 kB / 281.9 MB, free: 8.074 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002271/0.02676, allocations: 1.194 MB / 283.1 MB, free: 6.848 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.0268, allocations: 8.031 kB / 283.1 MB, free: 6.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006198/0.02742, allocations: 216.2 kB / 283.3 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.02876, allocations: 0.5992 MB / 283.9 MB, free: 6 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.43e-05/0.02883, allocations: 58.38 kB / 284 MB, free: 5.945 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.02899, allocations: 88.33 kB / 284.1 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001832/0.03082, allocations: 0.8262 MB / 284.9 MB, free: 4.988 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/0.03085, allocations: 4.188 kB / 284.9 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.476e-05/0.03092, allocations: 35.94 kB / 284.9 MB, free: 4.949 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.03095, allocations: 20 kB / 284.9 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001102/0.03205, allocations: 0.5114 MB / 285.4 MB, free: 4.422 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004669/0.03672, allocations: 2.978 MB / 288.4 MB, free: 1.258 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005395/0.03726, allocations: 214.5 kB / 288.6 MB, free: 1.039 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.03752, allocations: 104.8 kB / 288.7 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.917e-05/0.03755, allocations: 7.984 kB / 288.7 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.03759, allocations: 38.56 kB / 288.8 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.694e-06/0.03759, allocations: 0 / 288.8 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.1098/0.1474, allocations: 0.8936 MB / 289.7 MB, free: 32.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.1474, allocations: 87.09 kB / 289.8 MB, free: 32.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009927/0.1484, allocations: 0.6816 MB / 290.4 MB, free: 32.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.598e-05/0.1485, allocations: 31.86 kB / 290.5 MB, free: 32.56 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002748/0.1487, allocations: 0.5099 MB / 291 MB, free: 32.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.346e-05/0.1488, allocations: 110.1 kB / 291.1 MB, free: 32.38 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001399/0.149, allocations: 112 kB / 291.2 MB, free: 32.31 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.495e-05/0.149, allocations: 373.7 kB / 291.6 MB, free: 31.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.1493, allocations: 126.3 kB / 291.7 MB, free: 31.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/0.1497, allocations: 445.1 kB / 292.1 MB, free: 31.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006468/0.1503, allocations: 0.5755 MB / 292.7 MB, free: 31.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.1503, allocations: 2 kB / 292.7 MB, free: 31.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001102/0.1514, allocations: 0.6398 MB / 293.3 MB, free: 30.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.1515, allocations: 13.06 kB / 293.4 MB, free: 30.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.1515, allocations: 9 kB / 293.4 MB, free: 30.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.1517, allocations: 39.27 kB / 293.4 MB, free: 30.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004397/0.1521, allocations: 138.8 kB / 293.5 MB, free: 30.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007475/0.1529, allocations: 1.266 MB / 294.8 MB, free: 29.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004837/0.1533, allocations: 38.67 kB / 294.8 MB, free: 29.44 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.1534, allocations: 30.06 kB / 294.9 MB, free: 29.44 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002808/0.1537, allocations: 236.6 kB / 295.1 MB, free: 29.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.1538, allocations: 77.42 kB / 295.2 MB, free: 29.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006164/0.1544, allocations: 315 kB / 295.5 MB, free: 29.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1544, allocations: 3.719 kB / 295.5 MB, free: 29.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1544, allocations: 2.766 kB / 295.5 MB, free: 29.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1544, allocations: 2.859 kB / 295.5 MB, free: 29.06 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.1558, allocations: 0.9032 MB / 296.4 MB, free: 28.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.1558, allocations: 1.781 kB / 296.4 MB, free: 28.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002614/0.156, allocations: 63.41 kB / 296.5 MB, free: 28.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.148e-05/0.1561, allocations: 22.67 kB / 296.5 MB, free: 28.5 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.1561, allocations: 4.766 kB / 296.5 MB, free: 28.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006049/0.1567, allocations: 1.262 MB / 297.8 MB, free: 27.24 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1567, allocations: 2.344 kB / 297.8 MB, free: 27.24 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008239/0.1576, allocations: 0.5496 MB / 298.3 MB, free: 26.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001856/0.1578, allocations: 88.69 kB / 298.4 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.156e-05/0.1578, allocations: 8.672 kB / 298.4 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/0.1581, allocations: 19.33 kB / 298.4 MB, free: 26.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.1582, allocations: 23.62 kB / 298.4 MB, free: 26.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.1582, allocations: 15.95 kB / 298.5 MB, free: 26.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0005727/0.1588, allocations: 460.2 kB / 298.9 MB, free: 26.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1588, allocations: 0 / 298.9 MB, free: 26.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007462/0.1596, allocations: 162.8 kB / 299.1 MB, free: 26.61 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001909/0.1598, allocations: 120.6 kB / 299.2 MB, free: 26.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000904/0.1607, allocations: 455.9 kB / 299.6 MB, free: 26.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1607, allocations: 0 / 299.6 MB, free: 26.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.161, allocations: 231 kB / 299.9 MB, free: 26.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008836/0.1619, allocations: 177.8 kB / 300 MB, free: 26.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.1639, allocations: 1.354 MB / 301.4 MB, free: 25.24 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000346/0.1642, allocations: 353.9 kB / 301.7 MB, free: 25.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003085/0.1646, allocations: 82.33 kB / 301.8 MB, free: 25.11 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.923e-05/0.1647, allocations: 46.58 kB / 301.9 MB, free: 25.1 MB / 266.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1647, allocations: 0 / 301.9 MB, free: 25.1 MB / 266.7 MB Notification: Performance of Templates: time 0.01351/0.1782, allocations: 7.981 MB / 309.8 MB, free: 20.61 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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: 4.5985336429439485]