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.004378/0.004378, allocations: 84.39 kB / 22.21 MB, free: 2.289 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.001192/0.001192, allocations: 166.9 kB / 25.61 MB, free: 8.91 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.8753/0.8753, allocations: 158.6 MB / 187.5 MB, free: 2.781 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.462e-06/1.462e-06, allocations: 0 / 251.5 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.484e-05, allocations: 2.312 kB / 251.5 MB, free: 7.227 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.009071/0.009095, allocations: 11.31 MB / 262.8 MB, free: 11.85 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004971/0.01407, allocations: 3.15 MB / 265.9 MB, free: 8.691 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007995/0.01487, allocations: 47.81 kB / 266 MB, free: 8.645 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.01612, allocations: 0.6244 MB / 266.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001755/0.01787, allocations: 0.7675 MB / 267.4 MB, free: 7.242 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.019, allocations: 399.5 kB / 267.8 MB, free: 6.852 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002849/0.02185, allocations: 2.326 MB / 270.1 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009463/0.02279, allocations: 0.6068 MB / 270.7 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001508/0.0243, allocations: 1.333 MB / 272 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007747/0.02507, allocations: 0.705 MB / 272.7 MB, free: 1.816 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002127/0.02529, allocations: 212 kB / 273 MB, free: 1.609 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000366/0.02565, allocations: 251.9 kB / 273.2 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002466/0.0259, allocations: 442.3 kB / 273.6 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006048/0.0265, allocations: 0.6936 MB / 274.3 MB, free: 240 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001331/0.02783, allocations: 1.389 MB / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.02784, allocations: 0 / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.02784, allocations: 0 / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.02786, allocations: 0 / 275.7 MB, free: 14.84 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.002254/0.03012, allocations: 2.158 MB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.03016, allocations: 8.031 kB / 277.9 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005424/0.03071, allocations: 399.5 kB / 278.3 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009786/0.03168, allocations: 0.9402 MB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/0.03175, allocations: 115.4 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.0319, allocations: 164.3 kB / 279.5 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.03303, allocations: 1.201 MB / 280.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.03306, allocations: 7.953 kB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-05/0.03313, allocations: 60 kB / 280.8 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.21e-05/0.03315, allocations: 40 kB / 280.8 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004925/0.03365, allocations: 442 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004953/0.0386, allocations: 6.469 MB / 287.7 MB, free: 2.285 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003544/0.03895, allocations: 249 kB / 287.9 MB, free: 2.031 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.0391, allocations: 113.1 kB / 288 MB, free: 1.918 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.03913, allocations: 8.5 kB / 288.1 MB, free: 1.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.03939, allocations: 267.2 kB / 288.3 MB, free: 1.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.515e-06/0.03939, allocations: 4 kB / 288.3 MB, free: 1.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001556/0.04095, allocations: 1.017 MB / 289.3 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.04101, allocations: 162.7 kB / 289.5 MB, free: 360 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008176/0.04183, allocations: 1.047 MB / 290.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.04186, allocations: 37.7 kB / 290.6 MB, free: 15.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000503/0.04236, allocations: 0.9617 MB / 291.5 MB, free: 14.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.04258, allocations: 222.2 kB / 291.8 MB, free: 14.05 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.04277, allocations: 232.3 kB / 292 MB, free: 13.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.04291, allocations: 0.5237 MB / 292.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.04303, allocations: 120.2 kB / 292.6 MB, free: 13.16 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006151/0.04365, allocations: 1.048 MB / 293.7 MB, free: 11.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006474/0.04429, allocations: 1.128 MB / 294.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.0443, allocations: 8 kB / 294.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0009116/0.04521, allocations: 0.98 MB / 295.8 MB, free: 9.195 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.04525, allocations: 41.7 kB / 295.8 MB, free: 9.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.04527, allocations: 16 kB / 295.8 MB, free: 9.133 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001541/0.04542, allocations: 79.94 kB / 295.9 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/0.04585, allocations: 263.6 kB / 296.2 MB, free: 8.789 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.04752, allocations: 3.457 MB / 299.6 MB, free: 5.105 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.04804, allocations: 63.89 kB / 299.7 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.497e-05/0.04808, allocations: 52 kB / 299.8 MB, free: 4.992 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.0002651/0.04835, allocations: 248.1 kB / 300 MB, free: 4.738 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.04847, allocations: 143.2 kB / 300.1 MB, free: 4.598 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004237/0.04889, allocations: 388.6 kB / 300.5 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.04889, allocations: 4 kB / 300.5 MB, free: 4.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.0489, allocations: 4 kB / 300.5 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.0489, allocations: 7.922 kB / 300.5 MB, free: 4.184 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.05026, allocations: 1.317 MB / 301.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.05027, allocations: 4 kB / 301.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.05048, allocations: 99.89 kB / 301.9 MB, free: 2.652 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/0.05059, allocations: 51.77 kB / 302 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/0.05062, allocations: 16 kB / 302 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.05223, allocations: 3.426 MB / 305.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.05223, allocations: 4 kB / 305.4 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006272/0.05286, allocations: 0.7747 MB / 306.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.05308, allocations: 163.2 kB / 306.4 MB, free: 13.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.559e-05/0.05315, allocations: 23.92 kB / 306.4 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.05337, allocations: 36.03 kB / 306.4 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.969e-05/0.05344, allocations: 51.86 kB / 306.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.05346, allocations: 15.94 kB / 306.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004796/0.05394, allocations: 0.5751 MB / 307.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.05394, allocations: 0 / 307.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007901/0.05473, allocations: 296 kB / 307.4 MB, free: 12.9 MB / 298.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.0001917/0.05492, allocations: 135.1 kB / 307.5 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008542/0.05577, allocations: 0.8648 MB / 308.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.05578, allocations: 4 kB / 308.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.0561, allocations: 0.492 MB / 308.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007861/0.05689, allocations: 307.1 kB / 309.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.05987, allocations: 2.387 MB / 311.5 MB, free: 8.512 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.06004, allocations: 232.2 kB / 311.8 MB, free: 8.262 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003706/0.06041, allocations: 154.1 kB / 311.9 MB, free: 8.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004423/0.06085, allocations: 370 kB / 312.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of SimCode: time 1.313e-06/0.06085, allocations: 0 / 312.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of Templates: time 0.02218/0.08303, allocations: 15.54 MB / 327.8 MB, free: 8.223 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: 3.1300234883092344]