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.001438/0.001438, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001454/0.001454, allocations: 165 kB / 24.56 MB, free: 16 kB / 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 0.9725/0.9725, allocations: 177.2 MB / 205 MB, free: 5.301 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 1.423e-06/1.423e-06, allocations: 0 / 273 MB, free: 1.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.66e-05/1.802e-05, allocations: 6.312 kB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.006972/0.00699, allocations: 8.103 MB / 281.1 MB, free: 9.227 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003707/0.0107, allocations: 2.684 MB / 283.8 MB, free: 6.535 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006046/0.0113, allocations: 35.81 kB / 283.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.01234, allocations: 0.516 MB / 284.3 MB, free: 5.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006867/0.01302, allocations: 488.2 kB / 284.8 MB, free: 5.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005028/0.01353, allocations: 363.4 kB / 285.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.01464, allocations: 1.561 MB / 286.7 MB, free: 3.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004593/0.0151, allocations: 396 kB / 287.1 MB, free: 3.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000829/0.01593, allocations: 0.8689 MB / 288 MB, free: 2.293 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004551/0.01638, allocations: 474.5 kB / 288.5 MB, free: 1.828 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.0165, allocations: 136 kB / 288.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.01672, allocations: 168 kB / 288.7 MB, free: 1.531 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.01686, allocations: 294.9 kB / 289 MB, free: 1.242 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003026/0.01716, allocations: 450.8 kB / 289.5 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1335/0.1507, allocations: 0.9521 MB / 290.4 MB, free: 18.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.1507, allocations: 0 / 290.4 MB, free: 18.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1507, allocations: 1.062 kB / 290.4 MB, free: 18.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.274e-05/0.1507, allocations: 0 / 290.4 MB, free: 18.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.00805/0.1588, allocations: 1.564 MB / 292 MB, free: 17.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.1588, allocations: 9.312 kB / 292 MB, free: 17.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005735/0.1594, allocations: 270.6 kB / 292.3 MB, free: 17.36 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009637/0.1604, allocations: 0.7261 MB / 293 MB, free: 17.07 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.942e-05/0.1604, allocations: 73.62 kB / 293.1 MB, free: 17.07 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006141/0.1666, allocations: 103.7 kB / 293.2 MB, free: 17.06 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.1677, allocations: 0.8642 MB / 294 MB, free: 16.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.1678, allocations: 12.08 kB / 294 MB, free: 16.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.13e-05/0.1678, allocations: 39.56 kB / 294.1 MB, free: 16.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.442e-05/0.1678, allocations: 24.03 kB / 294.1 MB, free: 16.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007167/0.1686, allocations: 360.5 kB / 294.5 MB, free: 16.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00977/0.1783, allocations: 3.943 MB / 298.4 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006573/0.1849, allocations: 270 kB / 298.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.185, allocations: 89.73 kB / 298.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.1851, allocations: 12.11 kB / 298.8 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.1851, allocations: 42.77 kB / 298.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.034e-06/0.1851, allocations: 5.656 kB / 298.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.001448/0.1865, allocations: 0.9235 MB / 299.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.1866, allocations: 136.5 kB / 299.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/0.1901, allocations: 0.8104 MB / 300.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.1901, allocations: 39.23 kB / 300.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/0.1904, allocations: 0.6669 MB / 301.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.141e-05/0.1905, allocations: 153.3 kB / 301.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.1907, allocations: 142.7 kB / 301.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.732e-05/0.1907, allocations: 0.5071 MB / 302.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.1909, allocations: 96.61 kB / 302.3 MB, free: 12.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.1912, allocations: 0.6181 MB / 302.9 MB, free: 11.9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005405/0.1918, allocations: 0.6608 MB / 303.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/0.1918, allocations: 2.562 kB / 303.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0007066/0.1925, allocations: 0.6174 MB / 304.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1925, allocations: 11.06 kB / 304.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.1925, allocations: 10.31 kB / 304.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001242/0.1926, allocations: 40.27 kB / 304.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.193, allocations: 166.6 kB / 304.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005164/0.1935, allocations: 1.748 MB / 306.1 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002662/0.1937, allocations: 36.31 kB / 306.2 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.1938, allocations: 39.16 kB / 306.2 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002182/0.194, allocations: 229.3 kB / 306.4 MB, free: 9.348 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002636/0.1942, allocations: 0.6174 MB / 307.1 MB, free: 8.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004291/0.1947, allocations: 0.6563 MB / 307.7 MB, free: 8.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.569e-06/0.1947, allocations: 4.125 kB / 307.7 MB, free: 8.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.0006448/0.1953, allocations: 0.6266 MB / 308.3 MB, free: 7.961 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.1953, allocations: 8.844 kB / 308.4 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.1953, allocations: 10.44 kB / 308.4 MB, free: 7.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.836e-05/0.1954, allocations: 37.47 kB / 308.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.1957, allocations: 160.6 kB / 308.6 MB, free: 7.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003918/0.1961, allocations: 1.75 MB / 310.3 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002479/0.1963, allocations: 35.59 kB / 310.3 MB, free: 6.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.1964, allocations: 39.12 kB / 310.4 MB, free: 6.164 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.0001116/0.1965, allocations: 320.4 kB / 310.7 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-05/0.1966, allocations: 99.34 kB / 310.8 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003579/0.1969, allocations: 317 kB / 311.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1969, allocations: 7.359 kB / 311.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.1969, allocations: 0 / 311.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1969, allocations: 5.109 kB / 311.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.1979, allocations: 1.116 MB / 312.2 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1979, allocations: 0 / 312.2 MB, free: 5.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.1981, allocations: 79.7 kB / 312.3 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.176e-05/0.1982, allocations: 23.33 kB / 312.3 MB, free: 4.996 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.1982, allocations: 10.91 kB / 312.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000357/0.1985, allocations: 1.73 MB / 314.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1985, allocations: 1.625 kB / 314.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004406/0.199, allocations: 0.5975 MB / 314.7 MB, free: 2.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.1991, allocations: 124.4 kB / 314.8 MB, free: 2.766 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.071e-05/0.1992, allocations: 22.59 kB / 314.8 MB, free: 2.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.1993, allocations: 16.08 kB / 314.8 MB, free: 2.75 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.1994, allocations: 27.22 kB / 314.9 MB, free: 2.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.1994, allocations: 20.09 kB / 314.9 MB, free: 2.738 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003879/0.1998, allocations: 0.4998 MB / 315.4 MB, free: 2.531 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1998, allocations: 0 / 315.4 MB, free: 2.531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006795/0.2005, allocations: 345.4 kB / 315.7 MB, free: 2.5 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.0001503/0.2006, allocations: 123.9 kB / 315.8 MB, free: 2.406 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007146/0.2013, allocations: 0.9037 MB / 316.7 MB, free: 1.949 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2013, allocations: 2.812 kB / 316.7 MB, free: 1.949 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.2015, allocations: 290.4 kB / 317 MB, free: 1.754 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005717/0.2021, allocations: 227 kB / 317.2 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.2038, allocations: 1.699 MB / 318.9 MB, free: 452 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.25e-05/0.2039, allocations: 172 kB / 319.1 MB, free: 300 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002697/0.2042, allocations: 124.7 kB / 319.2 MB, free: 208 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.691e-05/0.2043, allocations: 56.5 kB / 319.3 MB, free: 152 kB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.2043, allocations: 4 kB / 319.3 MB, free: 148 kB / 266.7 MB Notification: Performance of Templates: time 0.01445/0.2187, allocations: 11.29 MB / 330.6 MB, free: 5.371 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.157892352901399]