Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.00114/0.00114, allocations: 75.89 kB / 21.69 MB, free: 2.871 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.001077/0.001077, allocations: 144.3 kB / 24.97 MB, free: 9.355 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 1/1, allocations: 173.4 MB / 201.5 MB, free: 9.316 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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.214e-06/2.214e-06, allocations: 0 / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.766e-05/2.988e-05, allocations: 6.25 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007958/0.007988, allocations: 8.057 MB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004141/0.01213, allocations: 2.645 MB / 278.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008646/0.01299, allocations: 31.81 kB / 278.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00137/0.01436, allocations: 0.516 MB / 279.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000956/0.01532, allocations: 488.2 kB / 279.8 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006345/0.01595, allocations: 367.4 kB / 280.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001668/0.01762, allocations: 1.561 MB / 281.7 MB, free: 8.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005813/0.0182, allocations: 384 kB / 282.1 MB, free: 8.586 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009259/0.01913, allocations: 0.8612 MB / 283 MB, free: 7.723 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005676/0.0197, allocations: 474.5 kB / 283.4 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.01985, allocations: 136 kB / 283.6 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002815/0.02014, allocations: 175.9 kB / 283.7 MB, free: 6.953 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.02032, allocations: 298.8 kB / 284 MB, free: 6.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004153/0.02073, allocations: 458.9 kB / 284.5 MB, free: 6.211 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.02191, allocations: 0.9572 MB / 285.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.02191, allocations: 0 / 285.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.02191, allocations: 0 / 285.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.773e-05/0.02193, allocations: 0 / 285.4 MB, free: 5.25 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.001986/0.02392, allocations: 1.565 MB / 287 MB, free: 3.645 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.02395, allocations: 12.86 kB / 287 MB, free: 3.633 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005703/0.02453, allocations: 272 kB / 287.3 MB, free: 3.367 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.02558, allocations: 0.7396 MB / 288 MB, free: 2.594 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.733e-05/0.02564, allocations: 74.38 kB / 288.1 MB, free: 2.52 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.02577, allocations: 100.3 kB / 288.2 MB, free: 2.422 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.02716, allocations: 0.8365 MB / 289 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/0.0272, allocations: 7.984 kB / 289 MB, free: 1.508 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.784e-05/0.02726, allocations: 39.98 kB / 289.1 MB, free: 1.469 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.02729, allocations: 24 kB / 289.1 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006918/0.02798, allocations: 359.6 kB / 289.5 MB, free: 1.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1131/0.1411, allocations: 3.937 MB / 293.4 MB, free: 30.79 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005362/0.1416, allocations: 281.3 kB / 293.7 MB, free: 30.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001305/0.1417, allocations: 91.27 kB / 293.8 MB, free: 30.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.1418, allocations: 11.81 kB / 293.8 MB, free: 30.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.19e-05/0.1418, allocations: 38.7 kB / 293.8 MB, free: 30.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 3.206e-06/0.1418, allocations: 4.719 kB / 293.8 MB, free: 30.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001473/0.1433, allocations: 0.9204 MB / 294.7 MB, free: 30.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.1433, allocations: 108.5 kB / 294.8 MB, free: 30.17 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007992/0.1441, allocations: 0.8128 MB / 295.6 MB, free: 29.82 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.081e-05/0.1441, allocations: 32.78 kB / 295.7 MB, free: 29.79 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003046/0.1444, allocations: 0.6674 MB / 296.3 MB, free: 29.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.579e-05/0.1445, allocations: 158.6 kB / 296.5 MB, free: 29.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.1446, allocations: 139.4 kB / 296.6 MB, free: 29.13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.413e-05/0.1447, allocations: 0.508 MB / 297.1 MB, free: 28.63 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.1449, allocations: 93.48 kB / 297.2 MB, free: 28.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003748/0.1453, allocations: 0.5886 MB / 297.8 MB, free: 27.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006594/0.1459, allocations: 0.6652 MB / 298.5 MB, free: 27.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.1459, allocations: 6.531 kB / 298.5 MB, free: 27.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001049/0.147, allocations: 0.623 MB / 299.1 MB, free: 27.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.147, allocations: 10.98 kB / 299.1 MB, free: 27.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/0.147, allocations: 9.469 kB / 299.1 MB, free: 27.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001877/0.1472, allocations: 33.64 kB / 299.2 MB, free: 27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005502/0.1478, allocations: 176.1 kB / 299.3 MB, free: 26.98 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008211/0.1486, allocations: 1.749 MB / 301.1 MB, free: 25.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.1491, allocations: 31.81 kB / 301.1 MB, free: 25.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.841e-05/0.1491, allocations: 38.47 kB / 301.2 MB, free: 25.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003477/0.1495, allocations: 222.1 kB / 301.4 MB, free: 25.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003627/0.1499, allocations: 0.5862 MB / 302 MB, free: 24.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006094/0.1505, allocations: 0.6518 MB / 302.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.376e-06/0.1505, allocations: 3.5 kB / 302.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0009948/0.1515, allocations: 0.6211 MB / 303.2 MB, free: 23.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1515, allocations: 9.781 kB / 303.2 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.1515, allocations: 11.53 kB / 303.3 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001075/0.1516, allocations: 40.98 kB / 303.3 MB, free: 23.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.1521, allocations: 166.3 kB / 303.5 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004707/0.1526, allocations: 1.754 MB / 305.2 MB, free: 21.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/0.1529, allocations: 30.03 kB / 305.2 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.1529, allocations: 34.19 kB / 305.3 MB, free: 21.61 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.0001209/0.153, allocations: 321 kB / 305.6 MB, free: 21.31 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.1531, allocations: 107.8 kB / 305.7 MB, free: 21.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004646/0.1536, allocations: 317.5 kB / 306 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.1536, allocations: 4.906 kB / 306 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1536, allocations: 0 / 306 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1536, allocations: 2.938 kB / 306 MB, free: 21.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.1549, allocations: 1.104 MB / 307.1 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1549, allocations: 1.25 kB / 307.1 MB, free: 20.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002112/0.1551, allocations: 80.61 kB / 307.2 MB, free: 20.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-05/0.1551, allocations: 21.09 kB / 307.2 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.1552, allocations: 9.891 kB / 307.2 MB, free: 20.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004149/0.1556, allocations: 1.733 MB / 309 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.1556, allocations: 5.938 kB / 309 MB, free: 18.64 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005561/0.1561, allocations: 0.6129 MB / 309.6 MB, free: 18.22 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.1563, allocations: 120.8 kB / 309.7 MB, free: 18.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.732e-05/0.1564, allocations: 10.17 kB / 309.7 MB, free: 18.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001821/0.1565, allocations: 25.16 kB / 309.7 MB, free: 18.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.191e-05/0.1566, allocations: 31.44 kB / 309.8 MB, free: 18.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.664e-05/0.1566, allocations: 14.86 kB / 309.8 MB, free: 18.12 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000496/0.1571, allocations: 0.5034 MB / 310.3 MB, free: 17.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1571, allocations: 0 / 310.3 MB, free: 17.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008458/0.158, allocations: 344.2 kB / 310.6 MB, free: 17.88 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.0001889/0.1582, allocations: 132.2 kB / 310.7 MB, free: 17.78 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009105/0.1591, allocations: 0.8911 MB / 311.6 MB, free: 17.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.1591, allocations: 6.656 kB / 311.6 MB, free: 17.27 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001664/0.1592, allocations: 297.2 kB / 311.9 MB, free: 17.06 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006453/0.1599, allocations: 231.2 kB / 312.2 MB, free: 17 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.1619, allocations: 1.701 MB / 313.9 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.764e-05/0.1619, allocations: 170.9 kB / 314 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.1622, allocations: 121.2 kB / 314.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.759e-05/0.1623, allocations: 58.7 kB / 314.2 MB, free: 15.87 MB / 266.7 MB Notification: Performance of SimCode: time 9.12e-07/0.1623, allocations: 0 / 314.2 MB, free: 15.87 MB / 266.7 MB Notification: Performance of Templates: time 0.01219/0.1745, allocations: 10.57 MB / 324.8 MB, free: 5.785 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.1889564278535545]