Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001079/0.001079, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001516/0.002595, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001021/0.001021, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001346/0.002368, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 0.9466/0.9466, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08455/1.031, allocations: 53.88 MB / 243.9 MB, free: 14.82 MB / 250.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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/1.89e-05, allocations: 2.312 kB / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01054/0.01056, allocations: 11.49 MB / 256.7 MB, free: 1.988 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006028/0.01658, allocations: 3.35 MB / 260.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.01773, allocations: 43.75 kB / 260.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.01914, allocations: 0.6517 MB / 260.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001414/0.02055, allocations: 0.7519 MB / 261.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000672/0.02123, allocations: 403.4 kB / 261.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00227/0.0235, allocations: 2.342 MB / 264.2 MB, free: 10.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008167/0.02431, allocations: 0.6302 MB / 264.9 MB, free: 9.727 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.02599, allocations: 1.501 MB / 266.4 MB, free: 8.203 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008002/0.0268, allocations: 0.7206 MB / 267.1 MB, free: 7.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002401/0.02704, allocations: 212 kB / 267.3 MB, free: 7.273 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003937/0.02743, allocations: 255.9 kB / 267.5 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002297/0.02766, allocations: 334.9 kB / 267.9 MB, free: 6.695 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005407/0.0282, allocations: 0.5927 MB / 268.5 MB, free: 6.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001321/0.02952, allocations: 1.319 MB / 269.8 MB, free: 4.777 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.291e-05/0.02953, allocations: 0 / 269.8 MB, free: 4.777 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.02953, allocations: 0 / 269.8 MB, free: 4.777 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.552e-05/0.02957, allocations: 0 / 269.8 MB, free: 4.777 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003063/0.03263, allocations: 2.379 MB / 272.2 MB, free: 2.355 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.03267, allocations: 12.62 kB / 272.2 MB, free: 2.344 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006342/0.0333, allocations: 393.8 kB / 272.6 MB, free: 1.941 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.03437, allocations: 0.7411 MB / 273.3 MB, free: 1.168 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.572e-05/0.03444, allocations: 123.4 kB / 273.4 MB, free: 1.047 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001601/0.0346, allocations: 160.3 kB / 273.6 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1215/0.1561, allocations: 1.165 MB / 274.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-05/0.1561, allocations: 11.03 kB / 274.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.53e-05/0.1562, allocations: 61.7 kB / 274.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.1562, allocations: 39.06 kB / 274.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006434/0.1569, allocations: 386.5 kB / 275.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004279/0.1612, allocations: 5.127 MB / 280.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003125/0.1615, allocations: 223 kB / 280.6 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001331/0.1616, allocations: 99.92 kB / 280.7 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.1616, allocations: 10.41 kB / 280.7 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002348/0.1619, allocations: 255.5 kB / 280.9 MB, free: 9.363 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.713e-06/0.1619, allocations: 0 / 280.9 MB, free: 9.363 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001343/0.1632, allocations: 0.9498 MB / 281.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.1632, allocations: 59.73 kB / 281.9 MB, free: 9 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008101/0.1641, allocations: 0.9624 MB / 282.9 MB, free: 8.801 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.1641, allocations: 38.23 kB / 282.9 MB, free: 8.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003229/0.1644, allocations: 0.7819 MB / 283.7 MB, free: 8.277 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.806e-05/0.1645, allocations: 212.6 kB / 283.9 MB, free: 8.148 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.1647, allocations: 222.4 kB / 284.1 MB, free: 8.117 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.754e-05/0.1647, allocations: 361.2 kB / 284.5 MB, free: 7.809 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.1648, allocations: 120.9 kB / 284.6 MB, free: 7.773 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003124/0.1652, allocations: 0.8044 MB / 285.4 MB, free: 6.898 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.1658, allocations: 0.9581 MB / 286.4 MB, free: 6.184 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.805e-06/0.1658, allocations: 8.625 kB / 286.4 MB, free: 6.184 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0007948/0.1666, allocations: 0.8036 MB / 287.2 MB, free: 6.055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/0.1666, allocations: 41.58 kB / 287.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.1666, allocations: 17.88 kB / 287.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001371/0.1668, allocations: 61.33 kB / 287.3 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005029/0.1673, allocations: 302.8 kB / 287.6 MB, free: 6.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000699/0.168, allocations: 2.345 MB / 289.9 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.1684, allocations: 72.31 kB / 290 MB, free: 3.738 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.1684, allocations: 49.64 kB / 290.1 MB, free: 3.738 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000186/0.1686, allocations: 199.4 kB / 290.3 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-05/0.1687, allocations: 93.03 kB / 290.4 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003369/0.169, allocations: 338.8 kB / 290.7 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.169, allocations: 9.438 kB / 290.7 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.169, allocations: 7.797 kB / 290.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.169, allocations: 4 kB / 290.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009821/0.17, allocations: 0.9992 MB / 291.7 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.309e-06/0.17, allocations: 3.844 kB / 291.7 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.1703, allocations: 119.9 kB / 291.8 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.1704, allocations: 118.8 kB / 291.9 MB, free: 3.094 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.466e-05/0.1705, allocations: 35.17 kB / 292 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.1705, allocations: 14.56 kB / 292 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005506/0.1711, allocations: 2.316 MB / 294.3 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.1711, allocations: 11.25 kB / 294.3 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003796/0.1715, allocations: 0.5654 MB / 294.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.797e-05/0.1715, allocations: 18.41 kB / 294.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.1717, allocations: 29.3 kB / 294.9 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/0.1718, allocations: 53.23 kB / 295 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.1718, allocations: 21.72 kB / 295 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002917/0.1721, allocations: 457.5 kB / 295.4 MB, free: 484 kB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1721, allocations: 0 / 295.4 MB, free: 484 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005508/0.1727, allocations: 309.5 kB / 295.8 MB, free: 480 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0001313/0.1728, allocations: 113.2 kB / 295.9 MB, free: 404 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004811/0.1733, allocations: 0.7733 MB / 296.6 MB, free: 68 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.851e-05/0.1733, allocations: 29.47 kB / 296.7 MB, free: 64 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.1736, allocations: 412.7 kB / 297.1 MB, free: 15.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001445/0.175, allocations: 3.081 MB / 300.1 MB, free: 12.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.1881, allocations: 2.423 MB / 302.6 MB, free: 11.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001649/0.1882, allocations: 237.3 kB / 302.8 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003156/0.1886, allocations: 156.3 kB / 303 MB, free: 11.28 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003785/0.1889, allocations: 322.7 kB / 303.3 MB, free: 11.23 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.1889, allocations: 0 / 303.3 MB, free: 11.23 MB / 282.7 MB Notification: Performance of Templates: time 0.01872/0.2077, allocations: 15.8 MB / 319.1 MB, free: 13.56 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.082745141349733]