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.0008203/0.0008203, allocations: 85.05 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.0008228/0.0008228, allocations: 140 kB / 24.89 MB, free: 9.227 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.8898/0.8898, allocations: 173.3 MB / 201.5 MB, free: 9.238 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.282e-06/1.282e-06, allocations: 0 / 268.5 MB, free: 6.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.337e-05, allocations: 10.25 kB / 268.5 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008269/0.008283, allocations: 11.74 MB / 280.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00403/0.01231, allocations: 3.346 MB / 283.6 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004862/0.0128, allocations: 39.88 kB / 283.6 MB, free: 7.027 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000956/0.01376, allocations: 0.6554 MB / 284.3 MB, free: 6.367 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009412/0.0147, allocations: 0.8256 MB / 285.1 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004211/0.01512, allocations: 415.4 kB / 285.5 MB, free: 5.129 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001505/0.01662, allocations: 2.501 MB / 288 MB, free: 2.621 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006127/0.01723, allocations: 0.6304 MB / 288.6 MB, free: 1.918 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001187/0.01842, allocations: 1.419 MB / 290 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.09735/0.1158, allocations: 0.7708 MB / 290.8 MB, free: 18.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000576/0.1163, allocations: 225.5 kB / 291 MB, free: 18.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006117/0.117, allocations: 260.1 kB / 291.3 MB, free: 18.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002525/0.1172, allocations: 463 kB / 291.7 MB, free: 18.98 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.1182, allocations: 0.7387 MB / 292.5 MB, free: 18.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.1202, allocations: 1.48 MB / 294 MB, free: 18.82 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1202, allocations: 0.7969 kB / 294 MB, free: 18.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1202, allocations: 0 / 294 MB, free: 18.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.764e-05/0.1203, allocations: 1.062 kB / 294 MB, free: 18.82 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.002895/0.1232, allocations: 2.07 MB / 296 MB, free: 17.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.1232, allocations: 11.2 kB / 296 MB, free: 17.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007119/0.1239, allocations: 353.8 kB / 296.4 MB, free: 17.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.1251, allocations: 0.7972 MB / 297.2 MB, free: 17.47 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.656e-05/0.1251, allocations: 114.4 kB / 297.3 MB, free: 17.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.1253, allocations: 158.2 kB / 297.4 MB, free: 17.46 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.1266, allocations: 1.169 MB / 298.6 MB, free: 17.14 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.234e-05/0.1266, allocations: 13.06 kB / 298.6 MB, free: 17.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.463e-05/0.1267, allocations: 65.72 kB / 298.7 MB, free: 17.13 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/0.1267, allocations: 38.5 kB / 298.7 MB, free: 17.13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006702/0.1274, allocations: 396.5 kB / 299.1 MB, free: 17.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004214/0.1316, allocations: 4.72 MB / 303.8 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005662/0.1322, allocations: 358.6 kB / 304.2 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003271/0.1325, allocations: 255.2 kB / 304.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.1326, allocations: 11.66 kB / 304.4 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.1326, allocations: 41.72 kB / 304.5 MB, free: 14.52 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.004e-06/0.1326, allocations: 4.219 kB / 304.5 MB, free: 14.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001619/0.1342, allocations: 1.229 MB / 305.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/0.1342, allocations: 111.5 kB / 305.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006412/0.1349, allocations: 1.009 MB / 306.8 MB, free: 13.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.1349, allocations: 39.08 kB / 306.9 MB, free: 13.81 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.1351, allocations: 0.7318 MB / 307.6 MB, free: 13.37 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.46e-05/0.1352, allocations: 272.3 kB / 307.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.1353, allocations: 208.3 kB / 308.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.824e-05/0.1354, allocations: 357.5 kB / 308.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.1355, allocations: 92.83 kB / 308.5 MB, free: 12.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002205/0.1357, allocations: 0.6207 MB / 309.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004235/0.1361, allocations: 0.7759 MB / 309.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.1361, allocations: 11.41 kB / 309.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.000715/0.1368, allocations: 0.7573 MB / 310.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.1369, allocations: 11.41 kB / 310.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.1369, allocations: 18.91 kB / 310.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003273/0.1372, allocations: 153.9 kB / 310.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003907/0.1376, allocations: 246.9 kB / 311.1 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.1387, allocations: 3.789 MB / 314.9 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000362/0.1391, allocations: 56.41 kB / 314.9 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.518e-05/0.1391, allocations: 42.62 kB / 315 MB, free: 7.738 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.00018/0.1393, allocations: 192.2 kB / 315.2 MB, free: 7.582 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.655e-05/0.1394, allocations: 95.23 kB / 315.3 MB, free: 7.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004399/0.1399, allocations: 474.5 kB / 315.7 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1399, allocations: 9.438 kB / 315.7 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.1399, allocations: 7.516 kB / 315.8 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.1399, allocations: 0 / 315.8 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.1411, allocations: 1.223 MB / 317 MB, free: 6.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1411, allocations: 7.453 kB / 317 MB, free: 6.746 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002567/0.1413, allocations: 122 kB / 317.1 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002954/0.1416, allocations: 177.5 kB / 317.3 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.1417, allocations: 12 kB / 317.3 MB, free: 6.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.1427, allocations: 3.835 MB / 321.1 MB, free: 2.496 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.726e-06/0.1427, allocations: 7.938 kB / 321.1 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005478/0.1432, allocations: 0.7418 MB / 321.9 MB, free: 1.703 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001849/0.1434, allocations: 119.1 kB / 322 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.041e-05/0.1435, allocations: 23.92 kB / 322 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.1437, allocations: 35.98 kB / 322 MB, free: 1.527 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.639e-05/0.1438, allocations: 64.17 kB / 322.1 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.1438, allocations: 16 kB / 322.1 MB, free: 1.453 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002725/0.1441, allocations: 485.1 kB / 322.6 MB, free: 1.027 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1441, allocations: 0 / 322.6 MB, free: 1.027 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006096/0.1447, allocations: 324 kB / 322.9 MB, free: 0.7109 MB / 266.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.000138/0.1448, allocations: 116 kB / 323 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005816/0.1454, allocations: 0.8111 MB / 323.8 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.316e-05/0.1455, allocations: 22.59 kB / 323.9 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003547/0.1458, allocations: 0.558 MB / 324.4 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007799/0.1466, allocations: 343.2 kB / 324.8 MB, free: 14.91 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.1495, allocations: 2.554 MB / 327.3 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001785/0.1496, allocations: 249 kB / 327.6 MB, free: 12.03 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003446/0.15, allocations: 154.8 kB / 327.7 MB, free: 11.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004795/0.1505, allocations: 348.7 kB / 328 MB, free: 11.54 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1505, allocations: 0 / 328 MB, free: 11.54 MB / 282.7 MB Notification: Performance of Templates: time 0.02317/0.1736, allocations: 18.67 MB / 346.7 MB, free: 9.234 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.1377706662751734]