Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.001/1.001, allocations: 177.1 MB / 205.3 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.218e-05/3.43e-05, allocations: 2.312 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007511/0.007545, allocations: 8.079 MB / 281.1 MB, free: 9.711 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003908/0.01145, allocations: 2.668 MB / 283.8 MB, free: 7.035 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007474/0.0122, allocations: 35.88 kB / 283.8 MB, free: 7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.01343, allocations: 0.516 MB / 284.4 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009603/0.01439, allocations: 484.2 kB / 284.8 MB, free: 6.004 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006059/0.015, allocations: 371.4 kB / 285.2 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001754/0.01675, allocations: 1.553 MB / 286.8 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005576/0.01731, allocations: 396 kB / 287.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.01836, allocations: 0.865 MB / 288 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005224/0.01888, allocations: 478.5 kB / 288.5 MB, free: 2.332 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.01902, allocations: 140 kB / 288.6 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002435/0.01926, allocations: 172 kB / 288.8 MB, free: 2.027 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001421/0.0194, allocations: 298.8 kB / 289.1 MB, free: 1.734 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003445/0.01975, allocations: 458.9 kB / 289.5 MB, free: 1.285 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.02075, allocations: 0.9533 MB / 290.5 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.02076, allocations: 0 / 290.5 MB, free: 336 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.02076, allocations: 0 / 290.5 MB, free: 336 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.02078, allocations: 0 / 290.5 MB, free: 336 kB / 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.1163/0.1371, allocations: 1.561 MB / 292 MB, free: 29.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1371, allocations: 8.719 kB / 292 MB, free: 29.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005072/0.1377, allocations: 273.5 kB / 292.3 MB, free: 29.62 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009706/0.1386, allocations: 0.7374 MB / 293 MB, free: 29.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.438e-05/0.1387, allocations: 74.38 kB / 293.1 MB, free: 29.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.1388, allocations: 104.9 kB / 293.2 MB, free: 29.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009824/0.1398, allocations: 0.8658 MB / 294.1 MB, free: 28.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-05/0.1398, allocations: 3.062 kB / 294.1 MB, free: 28.63 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.171e-05/0.1399, allocations: 43.31 kB / 294.1 MB, free: 28.6 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.418e-05/0.1399, allocations: 29.36 kB / 294.2 MB, free: 28.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006041/0.1405, allocations: 359.1 kB / 294.5 MB, free: 28.53 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003175/0.1437, allocations: 3.951 MB / 298.5 MB, free: 25.6 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005157/0.1442, allocations: 270.2 kB / 298.7 MB, free: 25.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.1443, allocations: 87.62 kB / 298.8 MB, free: 25.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.1443, allocations: 7.312 kB / 298.8 MB, free: 25.49 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.1443, allocations: 48.39 kB / 298.9 MB, free: 25.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.943e-06/0.1443, allocations: 0 / 298.9 MB, free: 25.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001252/0.1456, allocations: 0.9268 MB / 299.8 MB, free: 24.89 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.1456, allocations: 140.1 kB / 299.9 MB, free: 24.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007714/0.1464, allocations: 0.8147 MB / 300.7 MB, free: 24.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.1464, allocations: 31.89 kB / 300.8 MB, free: 24.33 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.1467, allocations: 0.6664 MB / 301.4 MB, free: 23.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.267e-05/0.1468, allocations: 155.1 kB / 301.6 MB, free: 23.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.1469, allocations: 140.3 kB / 301.7 MB, free: 23.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.621e-05/0.147, allocations: 0.504 MB / 302.2 MB, free: 23.1 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.1471, allocations: 98.86 kB / 302.3 MB, free: 23.07 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.1474, allocations: 0.6202 MB / 303 MB, free: 22.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004314/0.1478, allocations: 0.6554 MB / 303.6 MB, free: 21.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.1478, allocations: 3.594 kB / 303.6 MB, free: 21.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0006954/0.1485, allocations: 0.6214 MB / 304.2 MB, free: 21.41 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.1485, allocations: 10.72 kB / 304.2 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.1486, allocations: 9.938 kB / 304.3 MB, free: 21.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001362/0.1487, allocations: 36.83 kB / 304.3 MB, free: 21.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003255/0.149, allocations: 164.1 kB / 304.4 MB, free: 21.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004947/0.1495, allocations: 1.754 MB / 306.2 MB, free: 19.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.1498, allocations: 37.81 kB / 306.2 MB, free: 19.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.1498, allocations: 37.75 kB / 306.3 MB, free: 19.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002193/0.15, allocations: 222.3 kB / 306.5 MB, free: 19.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002492/0.1503, allocations: 0.6188 MB / 307.1 MB, free: 18.71 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004153/0.1507, allocations: 0.6599 MB / 307.8 MB, free: 18.03 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.658e-06/0.1507, allocations: 2.75 kB / 307.8 MB, free: 18.03 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006578/0.1514, allocations: 0.621 MB / 308.4 MB, free: 17.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.121e-05/0.1514, allocations: 12.03 kB / 308.4 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.455e-06/0.1514, allocations: 9.922 kB / 308.4 MB, free: 17.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.553e-05/0.1514, allocations: 40.78 kB / 308.5 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/0.1517, allocations: 164.5 kB / 308.6 MB, free: 17.73 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004126/0.1522, allocations: 1.746 MB / 310.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002506/0.1524, allocations: 36.22 kB / 310.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.1524, allocations: 33.81 kB / 310.4 MB, free: 15.95 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.0001311/0.1526, allocations: 325.7 kB / 310.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-05/0.1526, allocations: 107.9 kB / 310.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.153, allocations: 311 kB / 311.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.153, allocations: 4.906 kB / 311.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.153, allocations: 3.938 kB / 311.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.153, allocations: 7.125 kB / 311.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009569/0.154, allocations: 1.11 MB / 312.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.154, allocations: 0 / 312.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.1541, allocations: 75.91 kB / 312.4 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.051e-05/0.1542, allocations: 23.67 kB / 312.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.1542, allocations: 8 kB / 312.4 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003488/0.1546, allocations: 1.735 MB / 314.1 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1546, allocations: 0 / 314.1 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004088/0.155, allocations: 0.6028 MB / 314.7 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001294/0.1551, allocations: 123.3 kB / 314.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/0.1552, allocations: 12 kB / 314.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.1553, allocations: 19.98 kB / 314.9 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.63e-05/0.1554, allocations: 34.38 kB / 314.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.1554, allocations: 12.06 kB / 314.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003325/0.1557, allocations: 0.5028 MB / 315.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1557, allocations: 4 kB / 315.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006185/0.1563, allocations: 344 kB / 315.8 MB, free: 11 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.0001525/0.1565, allocations: 119.1 kB / 315.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007039/0.1572, allocations: 0.9095 MB / 316.8 MB, free: 9.922 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1572, allocations: 0.75 kB / 316.8 MB, free: 9.922 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.1573, allocations: 297.5 kB / 317.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006182/0.158, allocations: 239.3 kB / 317.3 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.1599, allocations: 1.692 MB / 319 MB, free: 7.656 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.116e-05/0.16, allocations: 175.6 kB / 319.2 MB, free: 7.465 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002664/0.1602, allocations: 116.8 kB / 319.3 MB, free: 7.348 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.504e-05/0.1603, allocations: 56.5 kB / 319.3 MB, free: 7.293 MB / 266.7 MB Notification: Performance of SimCode: time 1.252e-06/0.1603, allocations: 0 / 319.3 MB, free: 7.293 MB / 266.7 MB Notification: Performance of Templates: time 0.01232/0.1726, allocations: 10.6 MB / 329.9 MB, free: 12.95 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.217856460949406]