Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001424/0.001424, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001449/0.001449, allocations: 145.1 kB / 24.54 MB, free: 32 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 0.9635/0.9635, allocations: 173.3 MB / 201.1 MB, free: 9.324 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.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.251e-05/3.447e-05, allocations: 2.312 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.00962/0.009654, allocations: 12.08 MB / 280.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004232/0.01389, allocations: 3.226 MB / 283.3 MB, free: 7.047 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005839/0.01447, allocations: 39.88 kB / 283.3 MB, free: 7.008 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.01561, allocations: 0.6516 MB / 284 MB, free: 6.352 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009852/0.0166, allocations: 0.8179 MB / 284.8 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005028/0.0171, allocations: 403.5 kB / 285.2 MB, free: 5.133 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001802/0.0189, allocations: 2.509 MB / 287.7 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007039/0.0196, allocations: 0.6071 MB / 288.3 MB, free: 1.957 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00125/0.02085, allocations: 1.403 MB / 289.7 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1088/0.1297, allocations: 0.7718 MB / 290.5 MB, free: 18.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005683/0.1302, allocations: 228.9 kB / 290.7 MB, free: 18.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006406/0.1309, allocations: 265.1 kB / 291 MB, free: 18.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002382/0.1311, allocations: 476.9 kB / 291.4 MB, free: 18.76 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007715/0.1319, allocations: 0.7434 MB / 292.2 MB, free: 18.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001568/0.1335, allocations: 1.492 MB / 293.7 MB, free: 18.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1335, allocations: 1.312 kB / 293.7 MB, free: 18.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1335, allocations: 0 / 293.7 MB, free: 18.59 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.657e-05/0.1335, allocations: 0 / 293.7 MB, free: 18.59 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002644/0.1362, allocations: 2.243 MB / 295.9 MB, free: 17.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.1362, allocations: 13.34 kB / 295.9 MB, free: 17.48 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000712/0.1369, allocations: 417.4 kB / 296.3 MB, free: 17.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.1382, allocations: 1.05 MB / 297.4 MB, free: 16.99 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.506e-05/0.1382, allocations: 117 kB / 297.5 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.1384, allocations: 158.7 kB / 297.7 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.1401, allocations: 1.268 MB / 298.9 MB, free: 16.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.471e-05/0.1401, allocations: 12.34 kB / 298.9 MB, free: 16.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.193e-05/0.1402, allocations: 69.47 kB / 299 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-05/0.1402, allocations: 39.12 kB / 299 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009889/0.1412, allocations: 0.5618 MB / 299.6 MB, free: 16.57 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004748/0.146, allocations: 5.912 MB / 305.5 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007799/0.1468, allocations: 436.5 kB / 305.9 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004163/0.1472, allocations: 302.3 kB / 306.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.1472, allocations: 13.31 kB / 306.3 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.1472, allocations: 48.27 kB / 306.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.823e-06/0.1472, allocations: 0 / 306.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002123/0.1494, allocations: 1.648 MB / 308 MB, free: 11.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.24e-05/0.1494, allocations: 116.2 kB / 308.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008637/0.1503, allocations: 1.128 MB / 309.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.1503, allocations: 37.08 kB / 309.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003008/0.1506, allocations: 0.9551 MB / 310.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.736e-05/0.1507, allocations: 274.6 kB / 310.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.1508, allocations: 216.4 kB / 310.7 MB, free: 9.949 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.053e-05/0.1509, allocations: 0.5126 MB / 311.2 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.1511, allocations: 140.3 kB / 311.3 MB, free: 9.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/0.1514, allocations: 0.845 MB / 312.2 MB, free: 8.484 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006062/0.152, allocations: 1.021 MB / 313.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.152, allocations: 3.656 kB / 313.2 MB, free: 7.535 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001018/0.1531, allocations: 1.021 MB / 314.2 MB, free: 7.219 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1531, allocations: 12.66 kB / 314.2 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.1531, allocations: 17.34 kB / 314.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003514/0.1534, allocations: 146.4 kB / 314.4 MB, free: 7.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.1539, allocations: 251.5 kB / 314.6 MB, free: 7.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.1554, allocations: 5.614 MB / 320.2 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.1558, allocations: 59.12 kB / 320.3 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.255e-05/0.1559, allocations: 58.08 kB / 320.3 MB, free: 1.492 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002089/0.1561, allocations: 233.6 kB / 320.6 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.1562, allocations: 158.3 kB / 320.7 MB, free: 1.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006483/0.1568, allocations: 0.6011 MB / 321.3 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1568, allocations: 10.38 kB / 321.3 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.1568, allocations: 0 / 321.3 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.1568, allocations: 3.984 kB / 321.3 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.1587, allocations: 1.828 MB / 323.2 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.1587, allocations: 8.406 kB / 323.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002883/0.159, allocations: 130.5 kB / 323.3 MB, free: 15.13 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003325/0.1593, allocations: 160 kB / 323.5 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.1593, allocations: 16 kB / 323.5 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.1616, allocations: 5.683 MB / 329.2 MB, free: 8.941 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.1616, allocations: 7.938 kB / 329.2 MB, free: 8.934 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009979/0.1626, allocations: 1.022 MB / 330.2 MB, free: 7.828 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002496/0.1629, allocations: 198.1 kB / 330.4 MB, free: 7.637 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.014e-05/0.1629, allocations: 23.94 kB / 330.4 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.1632, allocations: 31.97 kB / 330.4 MB, free: 7.582 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.986e-05/0.1633, allocations: 59.44 kB / 330.5 MB, free: 7.527 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.1633, allocations: 31.98 kB / 330.5 MB, free: 7.496 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006119/0.1639, allocations: 0.6707 MB / 331.2 MB, free: 6.82 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1639, allocations: 4 kB / 331.2 MB, free: 6.816 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007447/0.1647, allocations: 328 kB / 331.5 MB, free: 6.496 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001976/0.1649, allocations: 141.2 kB / 331.7 MB, free: 6.359 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009279/0.1658, allocations: 1.058 MB / 332.7 MB, free: 5.301 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1658, allocations: 0 / 332.7 MB, free: 5.301 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004658/0.1663, allocations: 0.7428 MB / 333.5 MB, free: 4.52 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008799/0.1672, allocations: 354.1 kB / 333.8 MB, free: 4.195 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.1703, allocations: 2.69 MB / 336.5 MB, free: 1.418 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.1705, allocations: 249 kB / 336.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003296/0.1708, allocations: 162.8 kB / 336.9 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.171, allocations: 84.48 kB / 337 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of SimCode: time 7.91e-07/0.171, allocations: 0 / 337 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of Templates: time 0.0205/0.1915, allocations: 17.36 MB / 354.3 MB, free: 15.87 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.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.481525133829564]