Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000951/0.000951, allocations: 87.67 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009494/0.0009494, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9911/0.9911, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.589e-05/1.728e-05, allocations: 5.125 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006762/0.00678, allocations: 8.115 MB / 281 MB, free: 9.293 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002783/0.009563, allocations: 2.68 MB / 283.7 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000398/0.009961, allocations: 35.81 kB / 283.8 MB, free: 6.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009616/0.01092, allocations: 0.5199 MB / 284.3 MB, free: 6.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005388/0.01146, allocations: 480.2 kB / 284.7 MB, free: 5.574 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004729/0.01193, allocations: 367.4 kB / 285.1 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000954/0.01289, allocations: 1.557 MB / 286.7 MB, free: 3.652 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004376/0.01333, allocations: 392 kB / 287 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006873/0.01401, allocations: 0.8689 MB / 287.9 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004501/0.01446, allocations: 470.5 kB / 288.4 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.01459, allocations: 136 kB / 288.5 MB, free: 1.781 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002108/0.0148, allocations: 180 kB / 288.7 MB, free: 1.605 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.01494, allocations: 294.9 kB / 289 MB, free: 1.316 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003016/0.01525, allocations: 450.8 kB / 289.4 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1163/0.1315, allocations: 0.9566 MB / 290.4 MB, free: 18.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1315, allocations: 1.969 kB / 290.4 MB, free: 18.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1315, allocations: 0 / 290.4 MB, free: 18.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.248e-05/0.1316, allocations: 0.5312 kB / 290.4 MB, free: 18.81 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.00305/0.1346, allocations: 1.571 MB / 291.9 MB, free: 17.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.1347, allocations: 13.52 kB / 291.9 MB, free: 17.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007335/0.1354, allocations: 271.5 kB / 292.2 MB, free: 17.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.1369, allocations: 0.7352 MB / 293 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.509e-05/0.1369, allocations: 75.62 kB / 293 MB, free: 17.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.1371, allocations: 105 kB / 293.1 MB, free: 17.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.1386, allocations: 0.8647 MB / 294 MB, free: 17.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.465e-05/0.1387, allocations: 6.75 kB / 294 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.372e-05/0.1388, allocations: 40.94 kB / 294 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.917e-05/0.1388, allocations: 24.38 kB / 294.1 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009681/0.1398, allocations: 357.9 kB / 294.4 MB, free: 17.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005035/0.1448, allocations: 3.946 MB / 298.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008181/0.1456, allocations: 269.5 kB / 298.6 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002425/0.1459, allocations: 93.19 kB / 298.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.663e-05/0.1459, allocations: 10.03 kB / 298.7 MB, free: 15.01 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.125e-05/0.146, allocations: 47.98 kB / 298.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 3.977e-06/0.146, allocations: 0 / 298.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.002211/0.1482, allocations: 0.9202 MB / 299.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.1482, allocations: 139 kB / 299.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.1492, allocations: 0.8134 MB / 300.6 MB, free: 14.17 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.1493, allocations: 32.45 kB / 300.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003222/0.1496, allocations: 0.6679 MB / 301.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.1497, allocations: 154.8 kB / 301.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.1499, allocations: 143 kB / 301.6 MB, free: 13.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.607e-05/0.15, allocations: 0.5041 MB / 302.1 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.1502, allocations: 95.61 kB / 302.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.1505, allocations: 0.6188 MB / 302.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005869/0.1511, allocations: 0.6617 MB / 303.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.357e-05/0.1511, allocations: 6.719 kB / 303.5 MB, free: 11.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001026/0.1521, allocations: 0.6167 MB / 304.1 MB, free: 11.63 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.1522, allocations: 9.875 kB / 304.1 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.1522, allocations: 10.05 kB / 304.1 MB, free: 11.63 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002111/0.1524, allocations: 33.67 kB / 304.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.1528, allocations: 169 kB / 304.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007328/0.1535, allocations: 1.749 MB / 306.1 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004264/0.154, allocations: 36.31 kB / 306.1 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.445e-05/0.154, allocations: 38.28 kB / 306.2 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002912/0.1543, allocations: 221.6 kB / 306.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002842/0.1546, allocations: 0.6194 MB / 307 MB, free: 8.969 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004996/0.1551, allocations: 0.6655 MB / 307.7 MB, free: 8.324 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.191e-05/0.1551, allocations: 3.781 kB / 307.7 MB, free: 8.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0007501/0.1558, allocations: 0.619 MB / 308.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1559, allocations: 11.48 kB / 308.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.1559, allocations: 11.03 kB / 308.3 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.09e-05/0.156, allocations: 33.72 kB / 308.3 MB, free: 8.113 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.1563, allocations: 169.4 kB / 308.5 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006421/0.1569, allocations: 1.745 MB / 310.3 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004974/0.1574, allocations: 36.16 kB / 310.3 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.448e-05/0.1575, allocations: 37.66 kB / 310.3 MB, free: 6.332 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.1577, allocations: 325 kB / 310.6 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1578, allocations: 100.8 kB / 310.7 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004368/0.1582, allocations: 316.6 kB / 311.1 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1583, allocations: 7 kB / 311.1 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1583, allocations: 0 / 311.1 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1583, allocations: 2 kB / 311.1 MB, free: 5.844 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001307/0.1596, allocations: 1.114 MB / 312.2 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1596, allocations: 1.969 kB / 312.2 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.1598, allocations: 74.59 kB / 312.3 MB, free: 5.176 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.135e-05/0.1598, allocations: 25.48 kB / 312.3 MB, free: 5.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.1599, allocations: 11.38 kB / 312.3 MB, free: 5.156 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004515/0.1603, allocations: 1.735 MB / 314 MB, free: 3.402 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1603, allocations: 7.438 kB / 314 MB, free: 3.402 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004864/0.1608, allocations: 0.5964 MB / 314.6 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.161, allocations: 118.3 kB / 314.7 MB, free: 2.934 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.098e-05/0.161, allocations: 14.7 kB / 314.8 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.1612, allocations: 17.58 kB / 314.8 MB, free: 2.922 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.051e-05/0.1613, allocations: 29.66 kB / 314.8 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.1613, allocations: 18.59 kB / 314.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000405/0.1617, allocations: 0.5015 MB / 315.3 MB, free: 2.695 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1617, allocations: 0 / 315.3 MB, free: 2.695 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009475/0.1626, allocations: 343.8 kB / 315.7 MB, free: 2.668 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000211/0.1628, allocations: 132.4 kB / 315.8 MB, free: 2.566 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.1639, allocations: 0.8991 MB / 316.7 MB, free: 2.117 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1639, allocations: 7.047 kB / 316.7 MB, free: 2.117 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002011/0.1641, allocations: 290.4 kB / 317 MB, free: 1.918 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007007/0.1648, allocations: 234.9 kB / 317.2 MB, free: 1.855 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.1673, allocations: 1.697 MB / 318.9 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.1674, allocations: 179 kB / 319.1 MB, free: 388 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003437/0.1677, allocations: 116.5 kB / 319.2 MB, free: 296 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.961e-05/0.1678, allocations: 52.5 kB / 319.2 MB, free: 244 kB / 266.7 MB Notification: Performance of SimCode: time 1.923e-06/0.1678, allocations: 0 / 319.2 MB, free: 244 kB / 266.7 MB Notification: Performance of Templates: time 0.01602/0.1838, allocations: 10.61 MB / 329.9 MB, free: 6.117 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.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.223955375608057]