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.0009174/0.0009174, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001017/0.001017, allocations: 150.2 kB / 24.81 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.029/1.029, allocations: 173.3 MB / 201.4 MB, free: 9.203 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.353e-06/1.353e-06, allocations: 0 / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.169e-05/1.305e-05, allocations: 2.312 kB / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008721/0.008734, allocations: 11.35 MB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004874/0.01361, allocations: 3.164 MB / 282.9 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006811/0.01429, allocations: 43.81 kB / 283 MB, free: 7.551 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001072/0.01536, allocations: 0.6322 MB / 283.6 MB, free: 6.914 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001121/0.01648, allocations: 0.7558 MB / 284.4 MB, free: 6.152 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004682/0.01695, allocations: 407.4 kB / 284.8 MB, free: 5.754 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001808/0.01876, allocations: 2.333 MB / 287.1 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006368/0.01939, allocations: 0.6029 MB / 287.7 MB, free: 2.758 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.02045, allocations: 1.337 MB / 289 MB, free: 1.418 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006155/0.02106, allocations: 0.7011 MB / 289.7 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001753/0.02124, allocations: 212 kB / 289.9 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.02151, allocations: 255.9 kB / 290.2 MB, free: 264 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1091/0.1306, allocations: 429.5 kB / 290.6 MB, free: 18.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001266/0.1319, allocations: 0.6958 MB / 291.3 MB, free: 18.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001818/0.1337, allocations: 1.387 MB / 292.7 MB, free: 18.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.1337, allocations: 1.203 kB / 292.7 MB, free: 18.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1337, allocations: 1.25 kB / 292.7 MB, free: 18.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.799e-05/0.1337, allocations: 0 / 292.7 MB, free: 18.8 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.002365/0.1361, allocations: 2.158 MB / 294.9 MB, free: 17.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.1361, allocations: 11.77 kB / 294.9 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005855/0.1367, allocations: 388.8 kB / 295.2 MB, free: 17.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009679/0.1377, allocations: 0.9393 MB / 296.2 MB, free: 17.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.923e-05/0.1377, allocations: 117 kB / 296.3 MB, free: 17.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.1379, allocations: 159.7 kB / 296.5 MB, free: 17.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.1391, allocations: 1.19 MB / 297.6 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.621e-05/0.1391, allocations: 15.03 kB / 297.7 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.088e-05/0.1392, allocations: 68.94 kB / 297.7 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/0.1392, allocations: 37.88 kB / 297.8 MB, free: 16.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006583/0.1399, allocations: 441.4 kB / 298.2 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004477/0.1444, allocations: 6.477 MB / 304.7 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003178/0.1447, allocations: 247.2 kB / 304.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.1448, allocations: 114.5 kB / 305 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1449, allocations: 14.41 kB / 305 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002061/0.1451, allocations: 260.7 kB / 305.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.552e-06/0.1451, allocations: 0 / 305.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001203/0.1463, allocations: 1.014 MB / 306.3 MB, free: 12.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.1463, allocations: 161.6 kB / 306.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000737/0.147, allocations: 1.044 MB / 307.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.1471, allocations: 39.45 kB / 307.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003572/0.1474, allocations: 0.9671 MB / 308.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.127e-05/0.1475, allocations: 218 kB / 308.7 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.1477, allocations: 231 kB / 309 MB, free: 11.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.916e-05/0.1477, allocations: 0.5254 MB / 309.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.1479, allocations: 129.3 kB / 309.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002895/0.1481, allocations: 1.043 MB / 310.6 MB, free: 9.359 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000515/0.1487, allocations: 1.128 MB / 311.8 MB, free: 8.215 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.1487, allocations: 6.562 kB / 311.8 MB, free: 8.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0008113/0.1495, allocations: 0.9789 MB / 312.8 MB, free: 7.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.1495, allocations: 42.08 kB / 312.8 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.1495, allocations: 15.72 kB / 312.8 MB, free: 7.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.1496, allocations: 72.88 kB / 312.9 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003819/0.15, allocations: 262.5 kB / 313.1 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007896/0.1508, allocations: 3.46 MB / 316.6 MB, free: 4.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.1512, allocations: 60.44 kB / 316.7 MB, free: 4.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.1513, allocations: 56.31 kB / 316.7 MB, free: 4.352 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.0001872/0.1515, allocations: 248.2 kB / 317 MB, free: 4.148 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.743e-05/0.1515, allocations: 141.8 kB / 317.1 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003335/0.1519, allocations: 396.4 kB / 317.5 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.1519, allocations: 6.359 kB / 317.5 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1519, allocations: 3.625 kB / 317.5 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1519, allocations: 2.156 kB / 317.5 MB, free: 3.902 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.153, allocations: 1.324 MB / 318.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.153, allocations: 3.25 kB / 318.8 MB, free: 3.199 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002109/0.1532, allocations: 100.1 kB / 318.9 MB, free: 3.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.251e-05/0.1533, allocations: 46.11 kB / 319 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1533, allocations: 16.88 kB / 319 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007232/0.154, allocations: 3.427 MB / 322.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.154, allocations: 12.97 kB / 322.4 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005623/0.1546, allocations: 0.766 MB / 323.2 MB, free: 15.19 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.1548, allocations: 168.4 kB / 323.4 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.833e-05/0.1548, allocations: 14.31 kB / 323.4 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.1551, allocations: 26.19 kB / 323.4 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/0.1551, allocations: 53.72 kB / 323.4 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.1552, allocations: 18.44 kB / 323.5 MB, free: 15.04 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003801/0.1555, allocations: 0.5702 MB / 324 MB, free: 14.76 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1555, allocations: 0 / 324 MB, free: 14.76 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006115/0.1561, allocations: 304.8 kB / 324.3 MB, free: 14.73 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.0001623/0.1563, allocations: 136.5 kB / 324.5 MB, free: 14.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006555/0.157, allocations: 0.8818 MB / 325.3 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.157, allocations: 1 kB / 325.3 MB, free: 13.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002697/0.1572, allocations: 487.7 kB / 325.8 MB, free: 13.31 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000769/0.158, allocations: 311.1 kB / 326.1 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.1609, allocations: 2.39 MB / 328.5 MB, free: 10.56 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/0.1611, allocations: 232.1 kB / 328.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000324/0.1614, allocations: 158.1 kB / 328.9 MB, free: 10.15 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004265/0.1619, allocations: 370 kB / 329.3 MB, free: 9.785 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.1619, allocations: 0 / 329.3 MB, free: 9.785 MB / 282.7 MB Notification: Performance of Templates: time 0.02091/0.1828, allocations: 15.52 MB / 344.8 MB, free: 10.6 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.1815593941137195]