Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001308/0.001308, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001074/0.001074, allocations: 171.9 kB / 24.92 MB, free: 8.723 MB / 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 0.9411/0.9411, allocations: 177.1 MB / 205.3 MB, free: 5.113 MB / 186.7 MB " [Timeout remaining time 179] 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.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.412e-06/1.412e-06, allocations: 0 / 273.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.192e-05/2.333e-05, allocations: 6.312 kB / 273.5 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01211/0.01214, allocations: 11.38 MB / 284.8 MB, free: 5.734 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006446/0.01858, allocations: 3.323 MB / 288.2 MB, free: 2.402 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009911/0.01958, allocations: 43.81 kB / 288.2 MB, free: 2.359 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001578/0.02115, allocations: 0.64 MB / 288.8 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001587/0.02274, allocations: 0.7558 MB / 289.6 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000757/0.0235, allocations: 407.4 kB / 290 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1144/0.1378, allocations: 2.331 MB / 292.3 MB, free: 16.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009953/0.1388, allocations: 0.6272 MB / 293 MB, free: 16.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001957/0.1408, allocations: 1.334 MB / 294.3 MB, free: 16.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001183/0.142, allocations: 0.7137 MB / 295 MB, free: 16.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004056/0.1424, allocations: 212.7 kB / 295.2 MB, free: 16.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004582/0.1428, allocations: 253.7 kB / 295.5 MB, free: 16.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002286/0.1431, allocations: 438.8 kB / 295.9 MB, free: 16.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000843/0.1439, allocations: 0.6955 MB / 296.6 MB, free: 16.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001779/0.1457, allocations: 1.388 MB / 298 MB, free: 16.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1457, allocations: 1.688 kB / 298 MB, free: 16.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1457, allocations: 0.9062 kB / 298 MB, free: 16.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.859e-05/0.1458, allocations: 0 / 298 MB, free: 16.08 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002442/0.1482, allocations: 1.991 MB / 300 MB, free: 14.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.1482, allocations: 9.562 kB / 300 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005382/0.1488, allocations: 330.2 kB / 300.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008858/0.1497, allocations: 0.7348 MB / 301 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.245e-05/0.1497, allocations: 113.6 kB / 301.1 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.1498, allocations: 167 kB / 301.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009828/0.1508, allocations: 1.171 MB / 302.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.715e-05/0.1509, allocations: 13.53 kB / 302.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.148e-05/0.1509, allocations: 68.84 kB / 302.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.151, allocations: 38.12 kB / 302.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004691/0.1514, allocations: 377.7 kB / 303 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003361/0.1548, allocations: 5.111 MB / 308.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002428/0.155, allocations: 233.4 kB / 308.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.1551, allocations: 105.3 kB / 308.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.1552, allocations: 13.41 kB / 308.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.1553, allocations: 250.3 kB / 308.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.412e-06/0.1553, allocations: 0 / 308.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001055/0.1564, allocations: 0.9422 MB / 309.6 MB, free: 9.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.1564, allocations: 162.4 kB / 309.8 MB, free: 9.473 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005346/0.157, allocations: 0.963 MB / 310.7 MB, free: 9.234 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.157, allocations: 38.11 kB / 310.8 MB, free: 9.195 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.1572, allocations: 0.7782 MB / 311.5 MB, free: 8.656 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.1573, allocations: 215.4 kB / 311.8 MB, free: 8.504 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.1574, allocations: 225.8 kB / 312 MB, free: 8.398 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.984e-05/0.1574, allocations: 354.4 kB / 312.3 MB, free: 8.094 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.993e-05/0.1575, allocations: 117.9 kB / 312.4 MB, free: 8.062 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.1577, allocations: 0.8016 MB / 313.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004049/0.1581, allocations: 0.8994 MB / 314.1 MB, free: 6.383 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.112e-06/0.1582, allocations: 3.594 kB / 314.1 MB, free: 6.383 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0005707/0.1587, allocations: 0.809 MB / 314.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.1587, allocations: 49.27 kB / 315 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.1588, allocations: 20 kB / 315 MB, free: 5.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001115/0.1589, allocations: 53.7 kB / 315.1 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003678/0.1592, allocations: 265.1 kB / 315.3 MB, free: 5.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000575/0.1598, allocations: 2.357 MB / 317.7 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.1602, allocations: 64.19 kB / 317.7 MB, free: 2.887 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/0.1602, allocations: 52 kB / 317.8 MB, free: 2.836 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001661/0.1604, allocations: 194.7 kB / 318 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.836e-05/0.1604, allocations: 95.27 kB / 318.1 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002671/0.1607, allocations: 327.9 kB / 318.4 MB, free: 2.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1607, allocations: 15.56 kB / 318.4 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1607, allocations: 0 / 318.4 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1607, allocations: 3.984 kB / 318.4 MB, free: 2.215 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008292/0.1615, allocations: 1.011 MB / 319.4 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.1615, allocations: 7.938 kB / 319.4 MB, free: 1.262 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.1617, allocations: 98.52 kB / 319.5 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.825e-05/0.1618, allocations: 33.7 kB / 319.6 MB, free: 1.133 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.1618, allocations: 19.98 kB / 319.6 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006884/0.1625, allocations: 2.317 MB / 321.9 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.1625, allocations: 7.469 kB / 321.9 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004392/0.163, allocations: 0.5657 MB / 322.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.1631, allocations: 115.1 kB / 322.6 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.289e-05/0.1632, allocations: 16 kB / 322.6 MB, free: 13.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.1634, allocations: 35.16 kB / 322.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.1635, allocations: 51.23 kB / 322.7 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.1635, allocations: 16 kB / 322.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003434/0.1638, allocations: 462.8 kB / 323.2 MB, free: 13.41 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1638, allocations: 4 kB / 323.2 MB, free: 13.41 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005802/0.1644, allocations: 300 kB / 323.5 MB, free: 13.11 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0001435/0.1646, allocations: 107.2 kB / 323.6 MB, free: 13.01 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000567/0.1651, allocations: 0.766 MB / 324.3 MB, free: 12.28 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.66e-05/0.1652, allocations: 21.81 kB / 324.3 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.1654, allocations: 367.2 kB / 324.7 MB, free: 11.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006979/0.1661, allocations: 314.4 kB / 325 MB, free: 11.61 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.1686, allocations: 2.28 MB / 327.3 MB, free: 9.273 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001536/0.1687, allocations: 228.2 kB / 327.5 MB, free: 9.02 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003161/0.169, allocations: 154.1 kB / 327.7 MB, free: 8.867 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/0.1694, allocations: 320.2 kB / 328 MB, free: 8.559 MB / 282.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1695, allocations: 4 kB / 328 MB, free: 8.555 MB / 282.7 MB Notification: Performance of Templates: time 0.01978/0.1892, allocations: 15.5 MB / 343.5 MB, free: 9.414 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.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.1468384652398527]