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.0008989/0.0008989, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0008492/0.0008492, allocations: 148.6 kB / 24.9 MB, free: 8.727 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.9049/0.9049, allocations: 173.4 MB / 201.5 MB, free: 8.727 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.122e-06/1.122e-06, allocations: 0 / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.994e-05/2.106e-05, allocations: 14.05 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008972/0.008993, allocations: 11.36 MB / 279.8 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005723/0.01472, allocations: 3.284 MB / 283.1 MB, free: 7.301 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001047/0.01576, allocations: 43.81 kB / 283.2 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.01704, allocations: 0.6478 MB / 283.8 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.01835, allocations: 0.7481 MB / 284.6 MB, free: 5.852 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000611/0.01897, allocations: 415.4 kB / 285 MB, free: 5.445 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001796/0.02076, allocations: 2.33 MB / 287.3 MB, free: 3.109 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006903/0.02145, allocations: 0.638 MB / 287.9 MB, free: 2.398 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.02267, allocations: 1.333 MB / 289.3 MB, free: 1.062 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007212/0.02339, allocations: 0.705 MB / 290 MB, free: 364 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003312/0.02372, allocations: 212 kB / 290.2 MB, free: 152 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1012/0.125, allocations: 257.7 kB / 290.4 MB, free: 19.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005559/0.1255, allocations: 431.8 kB / 290.9 MB, free: 19.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.1269, allocations: 0.6921 MB / 291.5 MB, free: 19.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00177/0.1287, allocations: 1.39 MB / 292.9 MB, free: 19.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.1287, allocations: 5.281 kB / 292.9 MB, free: 19.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1287, allocations: 0 / 292.9 MB, free: 19.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.603e-05/0.1288, allocations: 0.5 kB / 292.9 MB, free: 19.41 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.002375/0.1311, allocations: 1.98 MB / 294.9 MB, free: 18.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.1312, allocations: 14.39 kB / 294.9 MB, free: 18.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005718/0.1317, allocations: 323.7 kB / 295.3 MB, free: 18.46 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009725/0.1327, allocations: 0.7382 MB / 296 MB, free: 18.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.357e-05/0.1328, allocations: 112.7 kB / 296.1 MB, free: 18.11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.1329, allocations: 163.8 kB / 296.3 MB, free: 18.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.134, allocations: 1.172 MB / 297.4 MB, free: 17.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.134, allocations: 15.91 kB / 297.5 MB, free: 17.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-05/0.1341, allocations: 68.16 kB / 297.5 MB, free: 17.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.554e-05/0.1341, allocations: 39.72 kB / 297.6 MB, free: 17.74 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005119/0.1346, allocations: 382.9 kB / 297.9 MB, free: 17.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003936/0.1386, allocations: 5.112 MB / 303 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.1389, allocations: 227.1 kB / 303.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.139, allocations: 103.4 kB / 303.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.139, allocations: 8.562 kB / 303.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.1392, allocations: 255.8 kB / 303.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.334e-06/0.1392, allocations: 0 / 303.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001291/0.1405, allocations: 0.9295 MB / 304.6 MB, free: 14.2 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.1405, allocations: 165 kB / 304.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006977/0.1412, allocations: 0.9707 MB / 305.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.1413, allocations: 36.52 kB / 305.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002521/0.1415, allocations: 0.7703 MB / 306.5 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.512e-05/0.1416, allocations: 224 kB / 306.7 MB, free: 13.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.1418, allocations: 222.9 kB / 306.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.628e-05/0.1418, allocations: 355.5 kB / 307.3 MB, free: 12.81 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.1419, allocations: 115 kB / 307.4 MB, free: 12.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.1421, allocations: 0.8043 MB / 308.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004665/0.1426, allocations: 0.8958 MB / 309.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1426, allocations: 7.281 kB / 309.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0006594/0.1433, allocations: 0.7996 MB / 309.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.043e-05/0.1433, allocations: 40.67 kB / 309.9 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.1433, allocations: 21.88 kB / 310 MB, free: 10.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001231/0.1434, allocations: 69.12 kB / 310 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003982/0.1438, allocations: 266.5 kB / 310.3 MB, free: 10.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006985/0.1445, allocations: 2.348 MB / 312.6 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004159/0.145, allocations: 60.84 kB / 312.7 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.785e-05/0.145, allocations: 51.78 kB / 312.7 MB, free: 8.711 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.0001832/0.1452, allocations: 201.3 kB / 312.9 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.372e-05/0.1452, allocations: 84.48 kB / 313 MB, free: 8.582 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.1455, allocations: 336.9 kB / 313.3 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1456, allocations: 10.27 kB / 313.4 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.1456, allocations: 0 / 313.4 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1456, allocations: 3.75 kB / 313.4 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009713/0.1465, allocations: 1.002 MB / 314.4 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.1465, allocations: 3.656 kB / 314.4 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002065/0.1467, allocations: 100.2 kB / 314.5 MB, free: 8.098 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.698e-05/0.1468, allocations: 51.2 kB / 314.5 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.1468, allocations: 14.62 kB / 314.5 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005523/0.1474, allocations: 2.324 MB / 316.9 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.1474, allocations: 3.281 kB / 316.9 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003791/0.1478, allocations: 0.5729 MB / 317.4 MB, free: 5.461 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.1479, allocations: 111.6 kB / 317.5 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.101e-05/0.148, allocations: 15.94 kB / 317.6 MB, free: 5.387 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.1482, allocations: 32.06 kB / 317.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.094e-05/0.1483, allocations: 56.05 kB / 317.6 MB, free: 5.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.1483, allocations: 10.75 kB / 317.6 MB, free: 5.363 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003105/0.1486, allocations: 460.7 kB / 318.1 MB, free: 5.281 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1486, allocations: 0 / 318.1 MB, free: 5.281 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006713/0.1493, allocations: 307.6 kB / 318.4 MB, free: 5.25 MB / 266.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.0001505/0.1494, allocations: 120.2 kB / 318.5 MB, free: 5.164 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004917/0.1499, allocations: 0.7515 MB / 319.3 MB, free: 4.617 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-05/0.15, allocations: 18.56 kB / 319.3 MB, free: 4.598 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.1501, allocations: 374.1 kB / 319.7 MB, free: 4.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006838/0.1508, allocations: 304.9 kB / 319.9 MB, free: 3.945 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002231/0.153, allocations: 2.273 MB / 322.2 MB, free: 1.617 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001182/0.1532, allocations: 240.1 kB / 322.5 MB, free: 1.359 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002983/0.1535, allocations: 150.2 kB / 322.6 MB, free: 1.211 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003641/0.1538, allocations: 321.1 kB / 322.9 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of SimCode: time 9.31e-07/0.1538, allocations: 0 / 322.9 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of Templates: time 0.02161/0.1754, allocations: 15.48 MB / 338.4 MB, free: 1.746 MB / 282.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.1042747157625854]