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.001333/0.001333, allocations: 81.7 kB / 21.25 MB, free: 0.5469 MB / 14.72 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.001419/0.001419, allocations: 160.3 kB / 24.5 MB, free: 3.719 MB / 14.72 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.426/1.426, allocations: 177.1 MB / 204.7 MB, free: 8.949 MB / 190.1 MB " [Timeout remaining time 178] 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 0.00186/0.00186, allocations: 65.91 kB / 325.5 MB, free: 168 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09789, allocations: 53.38 MB / 378.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009564/0.1075, allocations: 7.262 MB / 386.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005078/0.1125, allocations: 2.571 MB / 388.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.1135, allocations: 31.88 kB / 388.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001534/0.1151, allocations: 0.5083 MB / 389.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001203/0.1163, allocations: 472.5 kB / 389.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007654/0.117, allocations: 363.5 kB / 390.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.1188, allocations: 1.503 MB / 391.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006554/0.1195, allocations: 396 kB / 392 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000788/0.1203, allocations: 0.5797 MB / 392.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006831/0.121, allocations: 0.5167 MB / 393.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001743/0.1211, allocations: 136 kB / 393.2 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.1215, allocations: 176 kB / 393.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002475/0.1217, allocations: 294.9 kB / 393.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005425/0.1223, allocations: 0.5326 MB / 394.2 MB, free: 64 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00195/0.1242, allocations: 1.743 MB / 396 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1242, allocations: 7.922 kB / 396 MB, free: 14.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1242, allocations: 4 kB / 396 MB, free: 14.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.092e-05/0.1242, allocations: 0 / 396 MB, free: 14.3 MB / 366.1 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.002432/0.1267, allocations: 1.458 MB / 397.4 MB, free: 12.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.1267, allocations: 11.98 kB / 397.4 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006082/0.1273, allocations: 199.9 kB / 397.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.1286, allocations: 0.7213 MB / 398.4 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.742e-05/0.1287, allocations: 77.94 kB / 398.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001462/0.1289, allocations: 104 kB / 398.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.1305, allocations: 1.055 MB / 399.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.5e-05/0.1306, allocations: 4 kB / 399.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.151e-05/0.1306, allocations: 43.94 kB / 399.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.1307, allocations: 28 kB / 399.7 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.1319, allocations: 0.6286 MB / 400.3 MB, free: 9.848 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005122/0.137, allocations: 3.559 MB / 403.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.1381, allocations: 411.2 kB / 404.3 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.1384, allocations: 148.8 kB / 404.4 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.234e-05/0.1384, allocations: 4 kB / 404.4 MB, free: 5.523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.1385, allocations: 42.55 kB / 404.5 MB, free: 5.473 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.294e-06/0.1385, allocations: 0 / 404.5 MB, free: 5.473 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.002499/0.141, allocations: 1.181 MB / 405.6 MB, free: 4.258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.123e-05/0.141, allocations: 132.5 kB / 405.8 MB, free: 4.098 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.1422, allocations: 0.8292 MB / 406.6 MB, free: 3.258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.1422, allocations: 29.7 kB / 406.6 MB, free: 3.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004838/0.1427, allocations: 0.6164 MB / 407.2 MB, free: 2.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.1428, allocations: 150.7 kB / 407.4 MB, free: 2.449 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/0.143, allocations: 146.6 kB / 407.5 MB, free: 2.297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1432, allocations: 333.9 kB / 407.9 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003766/0.1436, allocations: 172.8 kB / 408 MB, free: 1.793 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006572/0.1442, allocations: 0.5663 MB / 408.6 MB, free: 1.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009819/0.1452, allocations: 0.6828 MB / 409.3 MB, free: 236 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1452, allocations: 4 kB / 409.3 MB, free: 232 kB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001354/0.1466, allocations: 0.7434 MB / 410 MB, free: 15.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1466, allocations: 8 kB / 410 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.1466, allocations: 15.94 kB / 410 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000167/0.1468, allocations: 32.84 kB / 410.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006361/0.1474, allocations: 180.2 kB / 410.2 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.1486, allocations: 1.256 MB / 411.5 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.1492, allocations: 39.94 kB / 411.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.1492, allocations: 36 kB / 411.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006495/0.1499, allocations: 354.2 kB / 411.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006093/0.1505, allocations: 0.5546 MB / 412.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009122/0.1514, allocations: 0.6598 MB / 413.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.991e-06/0.1514, allocations: 4 kB / 413.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.00121/0.1526, allocations: 0.7203 MB / 413.9 MB, free: 11.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1526, allocations: 8.156 kB / 413.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.1526, allocations: 16 kB / 413.9 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.785e-05/0.1527, allocations: 36.78 kB / 413.9 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005466/0.1533, allocations: 163.7 kB / 414.1 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.1543, allocations: 1.268 MB / 415.4 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005615/0.1549, allocations: 36.11 kB / 415.4 MB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.564e-05/0.1549, allocations: 39.98 kB / 415.4 MB, free: 9.531 MB / 382.1 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.0002528/0.1552, allocations: 232 kB / 415.7 MB, free: 9.297 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.1553, allocations: 91.38 kB / 415.7 MB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009435/0.1563, allocations: 422.4 kB / 416.2 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1563, allocations: 4 kB / 416.2 MB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.1563, allocations: 4 kB / 416.2 MB, free: 8.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.888e-06/0.1563, allocations: 3.984 kB / 416.2 MB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.1583, allocations: 1.134 MB / 417.3 MB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.1583, allocations: 4 kB / 417.3 MB, free: 7.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000371/0.1586, allocations: 88.05 kB / 417.4 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.809e-05/0.1587, allocations: 28.78 kB / 417.4 MB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.1588, allocations: 8 kB / 417.4 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009946/0.1597, allocations: 1.233 MB / 418.7 MB, free: 6.109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.1598, allocations: 4.031 kB / 418.7 MB, free: 6.105 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.1609, allocations: 0.7112 MB / 419.4 MB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.1612, allocations: 115.4 kB / 419.5 MB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.573e-05/0.1612, allocations: 19.98 kB / 419.5 MB, free: 5.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.1616, allocations: 19.98 kB / 419.5 MB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.228e-05/0.1617, allocations: 31.83 kB / 419.6 MB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.1617, allocations: 16 kB / 419.6 MB, free: 5.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007498/0.1625, allocations: 0.5498 MB / 420.1 MB, free: 4.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1625, allocations: 3.938 kB / 420.1 MB, free: 4.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001179/0.1637, allocations: 344 kB / 420.5 MB, free: 4.273 MB / 382.1 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.0002224/0.1639, allocations: 135.1 kB / 420.6 MB, free: 4.133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.1655, allocations: 0.9347 MB / 421.5 MB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1655, allocations: 0 / 421.5 MB, free: 3.176 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004272/0.1659, allocations: 282.7 kB / 421.8 MB, free: 2.887 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.167, allocations: 228.9 kB / 422 MB, free: 2.672 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.1701, allocations: 1.811 MB / 423.8 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/0.1706, allocations: 439.4 kB / 424.3 MB, free: 352 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004879/0.1711, allocations: 118.8 kB / 424.4 MB, free: 228 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.1712, allocations: 56.5 kB / 424.4 MB, free: 168 kB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1712, allocations: 4 kB / 424.4 MB, free: 164 kB / 382.1 MB Notification: Performance of Templates: time 0.02129/0.1925, allocations: 10.59 MB / 435 MB, free: 5.75 MB / 398.1 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.7649329690029845]