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.001193/0.001193, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.001612/0.001612, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 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 1.01/1.01, allocations: 177 MB / 205.2 MB, free: 5.051 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.433e-06/1.433e-06, allocations: 0 / 273.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.903e-05/2.046e-05, allocations: 2.312 kB / 273.4 MB, free: 1.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007282/0.007303, allocations: 7.955 MB / 281.4 MB, free: 9.016 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005225/0.01253, allocations: 2.768 MB / 284.2 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.01354, allocations: 35.81 kB / 284.2 MB, free: 6.203 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.01483, allocations: 0.5316 MB / 284.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001315/0.01614, allocations: 484.2 kB / 285.2 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006568/0.0168, allocations: 359.4 kB / 285.6 MB, free: 4.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001581/0.01838, allocations: 1.557 MB / 287.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006017/0.01898, allocations: 411.9 kB / 287.5 MB, free: 2.848 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009588/0.01994, allocations: 0.869 MB / 288.4 MB, free: 1.977 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004886/0.02043, allocations: 470.5 kB / 288.8 MB, free: 1.516 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.02056, allocations: 136 kB / 289 MB, free: 1.383 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002516/0.02081, allocations: 176 kB / 289.1 MB, free: 1.211 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.02095, allocations: 290.8 kB / 289.4 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000323/0.02127, allocations: 450.9 kB / 289.9 MB, free: 496 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1139/0.1351, allocations: 0.9521 MB / 290.8 MB, free: 18.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1351, allocations: 0 / 290.8 MB, free: 18.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1351, allocations: 0 / 290.8 MB, free: 18.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.309e-05/0.1352, allocations: 0 / 290.8 MB, free: 18.9 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.001756/0.1369, allocations: 1.423 MB / 292.2 MB, free: 18.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.137, allocations: 14.64 kB / 292.3 MB, free: 18.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000474/0.1374, allocations: 224.2 kB / 292.5 MB, free: 18.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000788/0.1382, allocations: 0.5748 MB / 293.1 MB, free: 17.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.1383, allocations: 72.72 kB / 293.1 MB, free: 17.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.85e-05/0.1384, allocations: 106.6 kB / 293.2 MB, free: 17.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.1391, allocations: 0.7963 MB / 294 MB, free: 17.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.145e-05/0.1392, allocations: 14.84 kB / 294 MB, free: 17.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.1392, allocations: 37.19 kB / 294.1 MB, free: 17.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.1392, allocations: 27.41 kB / 294.1 MB, free: 17.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.1396, allocations: 243 kB / 294.3 MB, free: 17.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002899/0.1425, allocations: 3.12 MB / 297.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.1429, allocations: 227.6 kB / 297.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.882e-05/0.143, allocations: 69.75 kB / 297.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.143, allocations: 6.562 kB / 297.8 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.143, allocations: 46.42 kB / 297.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.995e-06/0.143, allocations: 1.312 kB / 297.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001037/0.1441, allocations: 0.6636 MB / 298.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.1441, allocations: 133.9 kB / 298.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/0.1447, allocations: 0.7173 MB / 299.3 MB, free: 15.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.1447, allocations: 34.42 kB / 299.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001846/0.1449, allocations: 0.5178 MB / 299.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.515e-05/0.145, allocations: 150.9 kB / 300 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.1451, allocations: 142.8 kB / 300.2 MB, free: 14.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.093e-05/0.1451, allocations: 341.4 kB / 300.5 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.541e-05/0.1452, allocations: 66.12 kB / 300.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.1454, allocations: 477.7 kB / 301 MB, free: 13.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.1457, allocations: 0.506 MB / 301.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1457, allocations: 2.875 kB / 301.5 MB, free: 13.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005513/0.1463, allocations: 466.7 kB / 302 MB, free: 13.47 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1463, allocations: 9.969 kB / 302 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/0.1463, allocations: 10.81 kB / 302 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001316/0.1465, allocations: 39.47 kB / 302 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003995/0.1469, allocations: 191.3 kB / 302.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004529/0.1473, allocations: 1.171 MB / 303.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000312/0.1476, allocations: 42.64 kB / 303.4 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.1477, allocations: 31.5 kB / 303.5 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001799/0.1478, allocations: 150.8 kB / 303.6 MB, free: 12.24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001679/0.148, allocations: 470.9 kB / 304.1 MB, free: 11.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003428/0.1483, allocations: 0.5211 MB / 304.6 MB, free: 11.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.63e-06/0.1484, allocations: 3.844 kB / 304.6 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0005024/0.1489, allocations: 473.7 kB / 305.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.1489, allocations: 11.91 kB / 305.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1489, allocations: 11.41 kB / 305.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.756e-05/0.1489, allocations: 28.95 kB / 305.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003524/0.1493, allocations: 187.4 kB / 305.3 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003645/0.1497, allocations: 1.177 MB / 306.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.1499, allocations: 35.05 kB / 306.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/0.15, allocations: 30.53 kB / 306.5 MB, free: 10.15 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.000109/0.1501, allocations: 227.2 kB / 306.8 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.1502, allocations: 64.69 kB / 306.8 MB, free: 9.965 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002942/0.1505, allocations: 254.3 kB / 307.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.1505, allocations: 5.969 kB / 307.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1505, allocations: 2.75 kB / 307.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.1505, allocations: 3.359 kB / 307.1 MB, free: 9.898 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008963/0.1514, allocations: 0.7121 MB / 307.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1514, allocations: 4.875 kB / 307.8 MB, free: 9.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002131/0.1516, allocations: 86.98 kB / 307.9 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.656e-05/0.1516, allocations: 18.22 kB / 307.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.1517, allocations: 9.438 kB / 307.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003267/0.152, allocations: 1.16 MB / 309.1 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.152, allocations: 10.5 kB / 309.1 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003395/0.1523, allocations: 430.7 kB / 309.5 MB, free: 8.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.1525, allocations: 83.86 kB / 309.6 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.229e-05/0.1525, allocations: 12.23 kB / 309.6 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.1527, allocations: 26.02 kB / 309.6 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.432e-05/0.1527, allocations: 26.17 kB / 309.6 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.1527, allocations: 10.12 kB / 309.7 MB, free: 8.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002965/0.153, allocations: 349.9 kB / 310 MB, free: 8.199 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.153, allocations: 0 / 310 MB, free: 8.199 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007498/0.1538, allocations: 347.8 kB / 310.3 MB, free: 8.199 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.0001374/0.1539, allocations: 111.6 kB / 310.4 MB, free: 8.125 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006405/0.1546, allocations: 0.724 MB / 311.2 MB, free: 7.871 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-05/0.1546, allocations: 12.09 kB / 311.2 MB, free: 7.867 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.1547, allocations: 217.2 kB / 311.4 MB, free: 7.746 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005614/0.1553, allocations: 230.9 kB / 311.6 MB, free: 7.723 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.1573, allocations: 1.642 MB / 313.3 MB, free: 6.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/0.1574, allocations: 173.6 kB / 313.4 MB, free: 6.746 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002997/0.1577, allocations: 122 kB / 313.6 MB, free: 6.652 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003126/0.158, allocations: 246.9 kB / 313.8 MB, free: 6.449 MB / 266.7 MB Notification: Performance of SimCode: time 1.353e-06/0.158, allocations: 0 / 313.8 MB, free: 6.449 MB / 266.7 MB Notification: Performance of Templates: time 0.01512/0.1731, allocations: 11.65 MB / 325.4 MB, free: 11.6 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 -s gbode -gbm=radauIIA3 -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.0433388738892972]