Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.0009993/0.0009993, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001018/0.001018, allocations: 141.8 kB / 24.97 MB, free: 8.781 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 0.9763/0.9763, allocations: 173.3 MB / 201.5 MB, free: 9.344 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_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.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.416e-05/2.601e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.009485/0.009511, allocations: 11.66 MB / 279.7 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004921/0.01443, allocations: 3.176 MB / 282.9 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008833/0.01532, allocations: 39.88 kB / 283 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.01655, allocations: 0.6166 MB / 283.6 MB, free: 7.172 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.01771, allocations: 0.7597 MB / 284.3 MB, free: 6.406 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005715/0.01828, allocations: 403.4 kB / 284.7 MB, free: 6.012 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001855/0.02014, allocations: 2.334 MB / 287.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007619/0.0209, allocations: 0.6107 MB / 287.7 MB, free: 3.004 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.02252, allocations: 1.313 MB / 289 MB, free: 1.688 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008434/0.02336, allocations: 0.7128 MB / 289.7 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002237/0.02359, allocations: 216 kB / 289.9 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003119/0.0239, allocations: 255.9 kB / 290.2 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.02411, allocations: 446.3 kB / 290.6 MB, free: 76 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1145/0.1387, allocations: 0.6971 MB / 291.3 MB, free: 18.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001887/0.1405, allocations: 1.401 MB / 292.7 MB, free: 18.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1405, allocations: 5.094 kB / 292.7 MB, free: 18.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1405, allocations: 0 / 292.7 MB, free: 18.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.277e-05/0.1406, allocations: 0.5 kB / 292.7 MB, free: 18.5 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.002901/0.1435, allocations: 2.146 MB / 294.8 MB, free: 17.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.1435, allocations: 10.11 kB / 294.9 MB, free: 17.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006769/0.1442, allocations: 386.4 kB / 295.2 MB, free: 17.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001248/0.1455, allocations: 0.9783 MB / 296.2 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.236e-05/0.1455, allocations: 115.5 kB / 296.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.1457, allocations: 163.4 kB / 296.5 MB, free: 16.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.1473, allocations: 1.278 MB / 297.8 MB, free: 16.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.178e-05/0.1473, allocations: 9.516 kB / 297.8 MB, free: 16.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.403e-05/0.1474, allocations: 68.22 kB / 297.8 MB, free: 16.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.548e-05/0.1474, allocations: 39.61 kB / 297.9 MB, free: 16.51 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001256/0.1487, allocations: 0.5491 MB / 298.4 MB, free: 16.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006023/0.1547, allocations: 6.425 MB / 304.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004978/0.1552, allocations: 278.8 kB / 305.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.1555, allocations: 126.3 kB / 305.2 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.727e-05/0.1555, allocations: 9.156 kB / 305.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003295/0.1558, allocations: 277.7 kB / 305.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.615e-06/0.1558, allocations: 0 / 305.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00211/0.1579, allocations: 1.265 MB / 306.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.436e-05/0.158, allocations: 165.6 kB / 307 MB, free: 11.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001157/0.1591, allocations: 1.071 MB / 308 MB, free: 11.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.1592, allocations: 36.52 kB / 308.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000437/0.1596, allocations: 0.9606 MB / 309 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.1597, allocations: 216.6 kB / 309.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002/0.1599, allocations: 224.7 kB / 309.4 MB, free: 9.992 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.139e-05/0.16, allocations: 0.5163 MB / 310 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.1602, allocations: 151.5 kB / 310.1 MB, free: 9.449 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.1607, allocations: 1.072 MB / 311.2 MB, free: 8.168 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007881/0.1615, allocations: 1.162 MB / 312.3 MB, free: 6.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.1615, allocations: 3.562 kB / 312.4 MB, free: 6.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001297/0.1628, allocations: 1.05 MB / 313.4 MB, free: 6.621 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.1628, allocations: 50.7 kB / 313.5 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.21e-05/0.1629, allocations: 17.91 kB / 313.5 MB, free: 6.586 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/0.1631, allocations: 69.17 kB / 313.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005904/0.1636, allocations: 263.6 kB / 313.8 MB, free: 6.551 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.1648, allocations: 3.499 MB / 317.3 MB, free: 3.051 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007208/0.1655, allocations: 64.11 kB / 317.4 MB, free: 3.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.689e-05/0.1656, allocations: 59.34 kB / 317.4 MB, free: 3.016 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.0002889/0.1659, allocations: 245.8 kB / 317.7 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.166, allocations: 141.9 kB / 317.8 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005593/0.1666, allocations: 425.9 kB / 318.2 MB, free: 2.547 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1666, allocations: 7.344 kB / 318.2 MB, free: 2.547 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1666, allocations: 0 / 318.2 MB, free: 2.547 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.1666, allocations: 11.5 kB / 318.2 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.1683, allocations: 1.524 MB / 319.8 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.289e-06/0.1683, allocations: 3.125 kB / 319.8 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.1687, allocations: 107.9 kB / 319.9 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001264/0.1688, allocations: 49.03 kB / 319.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.1688, allocations: 18.84 kB / 319.9 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.1701, allocations: 3.472 MB / 323.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.1701, allocations: 7.125 kB / 323.4 MB, free: 14.09 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008394/0.171, allocations: 0.808 MB / 324.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/0.1713, allocations: 165.3 kB / 324.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001122/0.1714, allocations: 14.75 kB / 324.4 MB, free: 13.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003458/0.1717, allocations: 28.73 kB / 324.4 MB, free: 13.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.1718, allocations: 56.5 kB / 324.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.1719, allocations: 16.97 kB / 324.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000733/0.1726, allocations: 0.6324 MB / 325.1 MB, free: 13 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1726, allocations: 0 / 325.1 MB, free: 13 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001112/0.1737, allocations: 297.8 kB / 325.4 MB, free: 12.78 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.0002226/0.1739, allocations: 138.9 kB / 325.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/0.175, allocations: 0.9169 MB / 326.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.175, allocations: 0 / 326.5 MB, free: 11.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004098/0.1754, allocations: 0.4919 MB / 327 MB, free: 11.22 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.1766, allocations: 312.7 kB / 327.3 MB, free: 10.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003861/0.1804, allocations: 2.38 MB / 329.6 MB, free: 8.461 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.1806, allocations: 240.1 kB / 329.9 MB, free: 8.199 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004446/0.1811, allocations: 150.1 kB / 330 MB, free: 8.051 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.1812, allocations: 84.48 kB / 330.1 MB, free: 7.969 MB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.1812, allocations: 0 / 330.1 MB, free: 7.969 MB / 282.7 MB Notification: Performance of Templates: time 0.02453/0.2058, allocations: 14.38 MB / 344.5 MB, free: 9.902 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.2879005069844425]