Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.0009434/0.0009434, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.0009299/0.0009299, allocations: 167.9 kB / 25.7 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.81/0.81, allocations: 158.6 MB / 187.6 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.468e-06/1.087e-05, allocations: 2.312 kB / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.008523/0.008534, allocations: 11.31 MB / 262.9 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004867/0.0134, allocations: 3.296 MB / 266.1 MB, free: 8.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006207/0.01402, allocations: 35.88 kB / 266.2 MB, free: 8.535 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.01515, allocations: 0.64 MB / 266.8 MB, free: 7.891 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001106/0.01626, allocations: 0.7597 MB / 267.6 MB, free: 7.125 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005091/0.01677, allocations: 407.4 kB / 268 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001736/0.0185, allocations: 2.33 MB / 270.3 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007008/0.0192, allocations: 0.6302 MB / 270.9 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001281/0.02048, allocations: 1.317 MB / 272.3 MB, free: 2.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006733/0.02116, allocations: 0.7167 MB / 273 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001687/0.02132, allocations: 212 kB / 273.2 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002637/0.02159, allocations: 255.9 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002794/0.02187, allocations: 438.3 kB / 273.9 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004761/0.02234, allocations: 0.6937 MB / 274.6 MB, free: 72 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.02338, allocations: 1.393 MB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.02338, allocations: 0 / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.02338, allocations: 0 / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.02339, allocations: 0 / 275.9 MB, free: 14.67 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.001864/0.02526, allocations: 1.989 MB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.797e-05/0.02529, allocations: 8.031 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004384/0.02573, allocations: 332.6 kB / 278.3 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008258/0.02655, allocations: 0.7411 MB / 279 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.904e-05/0.02661, allocations: 115.5 kB / 279.1 MB, free: 11.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.02674, allocations: 172.2 kB / 279.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009244/0.02766, allocations: 1.17 MB / 280.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.516e-05/0.0277, allocations: 15.88 kB / 280.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.381e-05/0.02776, allocations: 64 kB / 280.5 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.02778, allocations: 40 kB / 280.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004533/0.02824, allocations: 378.3 kB / 280.9 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003954/0.03219, allocations: 5.112 MB / 286.1 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.03256, allocations: 220.6 kB / 286.3 MB, free: 3.824 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.0327, allocations: 106.3 kB / 286.4 MB, free: 3.719 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.849e-05/0.03273, allocations: 8.5 kB / 286.4 MB, free: 3.711 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.03298, allocations: 249.1 kB / 286.6 MB, free: 3.434 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.395e-06/0.03298, allocations: 0 / 286.6 MB, free: 3.434 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001219/0.0342, allocations: 0.9419 MB / 287.6 MB, free: 2.457 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.03425, allocations: 166.6 kB / 287.7 MB, free: 2.258 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006451/0.0349, allocations: 0.9624 MB / 288.7 MB, free: 1.281 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.03492, allocations: 37.7 kB / 288.7 MB, free: 1.238 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000315/0.03524, allocations: 0.7812 MB / 289.5 MB, free: 456 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.408e-05/0.03533, allocations: 210.2 kB / 289.7 MB, free: 244 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.03549, allocations: 222.7 kB / 289.9 MB, free: 12 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.823e-05/0.03559, allocations: 357.9 kB / 290.3 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.03569, allocations: 120.2 kB / 290.4 MB, free: 15.54 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004898/0.03618, allocations: 0.796 MB / 291.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005236/0.03671, allocations: 0.9064 MB / 292.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.03671, allocations: 7.938 kB / 292.1 MB, free: 13.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0006643/0.03738, allocations: 0.8037 MB / 292.9 MB, free: 12.41 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.03741, allocations: 42.61 kB / 293 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.286e-05/0.03742, allocations: 16 kB / 293 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001192/0.03754, allocations: 61.7 kB / 293 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004075/0.03795, allocations: 267.6 kB / 293.3 MB, free: 12.02 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009016/0.03885, allocations: 2.344 MB / 295.6 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003437/0.03919, allocations: 71.89 kB / 295.7 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.1e-05/0.03923, allocations: 48.12 kB / 295.8 MB, free: 9.391 MB / 282.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.0001857/0.03942, allocations: 201.3 kB / 296 MB, free: 9.184 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.679e-05/0.03949, allocations: 91.84 kB / 296 MB, free: 9.094 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003128/0.03981, allocations: 331.9 kB / 296.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.03981, allocations: 4 kB / 296.4 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.03981, allocations: 0 / 296.4 MB, free: 8.758 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.03982, allocations: 4 kB / 296.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009514/0.04077, allocations: 1.016 MB / 297.4 MB, free: 7.652 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.04077, allocations: 4 kB / 297.4 MB, free: 7.648 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.04098, allocations: 108.3 kB / 297.5 MB, free: 7.543 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.637e-05/0.04106, allocations: 37.7 kB / 297.5 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.04108, allocations: 16 kB / 297.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009742/0.04205, allocations: 2.316 MB / 299.9 MB, free: 4.996 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.04206, allocations: 4 kB / 299.9 MB, free: 4.992 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004298/0.04249, allocations: 0.5683 MB / 300.4 MB, free: 4.352 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.04265, allocations: 107.2 kB / 300.5 MB, free: 4.246 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.1e-05/0.04272, allocations: 28.11 kB / 300.6 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.04294, allocations: 27.98 kB / 300.6 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.262e-05/0.043, allocations: 55.8 kB / 300.7 MB, free: 4.137 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.04301, allocations: 12 kB / 300.7 MB, free: 4.125 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000337/0.04335, allocations: 463.5 kB / 301.1 MB, free: 3.664 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.04335, allocations: 0 / 301.1 MB, free: 3.664 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005548/0.04391, allocations: 300 kB / 301.4 MB, free: 3.371 MB / 282.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.0001494/0.04406, allocations: 120.2 kB / 301.5 MB, free: 3.246 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005599/0.04462, allocations: 0.7536 MB / 302.3 MB, free: 2.453 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.551e-05/0.04464, allocations: 21.81 kB / 302.3 MB, free: 2.43 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002405/0.04488, allocations: 376.2 kB / 302.7 MB, free: 2.035 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006657/0.04555, allocations: 312 kB / 303 MB, free: 1.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002447/0.04799, allocations: 2.266 MB / 305.2 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.04814, allocations: 232.2 kB / 305.5 MB, free: 15.12 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.04844, allocations: 154.1 kB / 305.6 MB, free: 14.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004058/0.04884, allocations: 317.1 kB / 305.9 MB, free: 14.66 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.04884, allocations: 4 kB / 305.9 MB, free: 14.66 MB / 298.7 MB Notification: Performance of Templates: time 0.01882/0.06766, allocations: 15.51 MB / 321.4 MB, free: 15.16 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStationary/DCPM_QuasiStationary.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: 2.9200887880288064]