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.00115/0.00115, allocations: 78.97 kB / 21.42 MB, free: 3.074 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.001108/0.001108, allocations: 151.9 kB / 24.8 MB, free: 9.285 MB / 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.044/1.044, allocations: 173.4 MB / 201.4 MB, free: 9.195 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 2.535e-06/2.535e-06, allocations: 0 / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.817e-05/3.071e-05, allocations: 2.312 kB / 268.4 MB, free: 6.172 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01258/0.01261, allocations: 11.72 MB / 280.1 MB, free: 10.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00479/0.0174, allocations: 3.21 MB / 283.4 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006857/0.01808, allocations: 43.81 kB / 283.4 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.01923, allocations: 0.6477 MB / 284 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.02035, allocations: 0.8295 MB / 284.9 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006474/0.021, allocations: 395.5 kB / 285.3 MB, free: 5.246 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002144/0.02314, allocations: 2.501 MB / 287.8 MB, free: 2.734 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007055/0.02385, allocations: 0.6109 MB / 288.4 MB, free: 2.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.02531, allocations: 1.415 MB / 289.8 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1045/0.1298, allocations: 0.7711 MB / 290.6 MB, free: 18.77 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006611/0.1305, allocations: 224.4 kB / 290.8 MB, free: 18.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008165/0.1313, allocations: 259.9 kB / 291 MB, free: 18.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002815/0.1316, allocations: 467.3 kB / 291.5 MB, free: 18.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009236/0.1325, allocations: 0.7354 MB / 292.2 MB, free: 18.77 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.1342, allocations: 1.481 MB / 293.7 MB, free: 18.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.75e-06/0.1342, allocations: 1.156 kB / 293.7 MB, free: 18.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1342, allocations: 0.6562 kB / 293.7 MB, free: 18.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.442e-05/0.1343, allocations: 0.9844 kB / 293.7 MB, free: 18.61 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.002469/0.1367, allocations: 2.252 MB / 296 MB, free: 17.5 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1368, allocations: 10.83 kB / 296 MB, free: 17.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006844/0.1375, allocations: 414.6 kB / 296.4 MB, free: 17.39 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.1386, allocations: 1.014 MB / 297.4 MB, free: 17.01 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.157e-05/0.1387, allocations: 113.9 kB / 297.5 MB, free: 17.01 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001722/0.1389, allocations: 164.1 kB / 297.7 MB, free: 17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.1401, allocations: 1.172 MB / 298.8 MB, free: 16.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.847e-05/0.1402, allocations: 14.78 kB / 298.9 MB, free: 16.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.1402, allocations: 66.28 kB / 298.9 MB, free: 16.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.616e-05/0.1403, allocations: 39.22 kB / 299 MB, free: 16.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007001/0.141, allocations: 454.3 kB / 299.4 MB, free: 16.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.1454, allocations: 5.963 MB / 305.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006129/0.146, allocations: 389.5 kB / 305.7 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003442/0.1464, allocations: 276.3 kB / 306 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.1464, allocations: 18.06 kB / 306 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/0.1464, allocations: 41.52 kB / 306.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.665e-06/0.1464, allocations: 0 / 306.1 MB, free: 13.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001752/0.1482, allocations: 1.336 MB / 307.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.1482, allocations: 113.4 kB / 307.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007257/0.149, allocations: 1.098 MB / 308.6 MB, free: 12.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.149, allocations: 41.48 kB / 308.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/0.1493, allocations: 0.9632 MB / 309.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.566e-05/0.1494, allocations: 267.4 kB / 309.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.1496, allocations: 222.9 kB / 310.1 MB, free: 11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.824e-05/0.1496, allocations: 0.5194 MB / 310.6 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.1497, allocations: 107.8 kB / 310.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.15, allocations: 0.8192 MB / 311.5 MB, free: 9.609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.1506, allocations: 0.967 MB / 312.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.1506, allocations: 3.312 kB / 312.5 MB, free: 8.707 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0008869/0.1514, allocations: 0.9405 MB / 313.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1515, allocations: 15.16 kB / 313.5 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.1515, allocations: 18.91 kB / 313.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003115/0.1518, allocations: 136.3 kB / 313.6 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004074/0.1522, allocations: 252.6 kB / 313.9 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.1537, allocations: 5.552 MB / 319.4 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.1541, allocations: 58.05 kB / 319.5 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.89e-05/0.1541, allocations: 43.97 kB / 319.5 MB, free: 2.887 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.0002171/0.1544, allocations: 237.2 kB / 319.7 MB, free: 2.684 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.1545, allocations: 154.8 kB / 319.9 MB, free: 2.605 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005514/0.155, allocations: 0.5433 MB / 320.4 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.155, allocations: 6.719 kB / 320.4 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.155, allocations: 7.922 kB / 320.5 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.155, allocations: 0.7656 kB / 320.5 MB, free: 2.301 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/0.1566, allocations: 1.593 MB / 322.1 MB, free: 1.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1566, allocations: 4 kB / 322.1 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002712/0.1568, allocations: 132.5 kB / 322.2 MB, free: 1.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003015/0.1572, allocations: 152.1 kB / 322.3 MB, free: 1.008 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.618e-05/0.1572, allocations: 19.98 kB / 322.4 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.1594, allocations: 5.61 MB / 328 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1594, allocations: 7.188 kB / 328 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008883/0.1603, allocations: 0.9626 MB / 328.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.1605, allocations: 194 kB / 329.1 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.403e-05/0.1606, allocations: 19.98 kB / 329.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.1609, allocations: 31.98 kB / 329.2 MB, free: 9.824 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.03e-05/0.161, allocations: 67.7 kB / 329.2 MB, free: 9.762 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.506e-05/0.161, allocations: 16.66 kB / 329.3 MB, free: 9.746 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004649/0.1615, allocations: 0.6203 MB / 329.9 MB, free: 9.172 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1615, allocations: 0 / 329.9 MB, free: 9.172 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008463/0.1623, allocations: 324 kB / 330.2 MB, free: 8.855 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.0002194/0.1626, allocations: 142.5 kB / 330.3 MB, free: 8.723 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000852/0.1634, allocations: 1.011 MB / 331.3 MB, free: 7.723 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1634, allocations: 4 kB / 331.3 MB, free: 7.719 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004549/0.1639, allocations: 0.7236 MB / 332.1 MB, free: 6.969 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009095/0.1648, allocations: 347.5 kB / 332.4 MB, free: 6.645 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003353/0.1681, allocations: 2.69 MB / 335.1 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.1683, allocations: 249 kB / 335.3 MB, free: 3.613 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004011/0.1687, allocations: 162.8 kB / 335.5 MB, free: 3.449 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005202/0.1693, allocations: 398 kB / 335.9 MB, free: 3.059 MB / 282.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1693, allocations: 0 / 335.9 MB, free: 3.059 MB / 282.7 MB Notification: Performance of Templates: time 0.02641/0.1957, allocations: 18.72 MB / 354.6 MB, free: 0.6992 MB / 298.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.183941740076989]