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.001526/0.001526, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001925/0.001925, allocations: 165.7 kB / 25.33 MB, free: 8.582 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.9373/0.9373, allocations: 158.6 MB / 187.2 MB, free: 2.926 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.643e-06/1.643e-06, allocations: 0 / 251.1 MB, free: 7.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.006e-05/3.17e-05, allocations: 2.312 kB / 251.1 MB, free: 7.496 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01454/0.01457, allocations: 11.65 MB / 262.7 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008985/0.02355, allocations: 3.173 MB / 265.9 MB, free: 8.594 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002559/0.02611, allocations: 43.81 kB / 265.9 MB, free: 8.551 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.02857, allocations: 0.6283 MB / 266.6 MB, free: 7.918 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002539/0.03111, allocations: 0.7636 MB / 267.3 MB, free: 7.148 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008651/0.03197, allocations: 399.5 kB / 267.7 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002646/0.03462, allocations: 2.334 MB / 270 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009648/0.03558, allocations: 0.6068 MB / 270.7 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002004/0.03759, allocations: 1.329 MB / 272 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009968/0.03859, allocations: 0.7011 MB / 272.7 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003436/0.03893, allocations: 212 kB / 272.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004138/0.03934, allocations: 251.9 kB / 273.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002174/0.03956, allocations: 442.3 kB / 273.6 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007044/0.04026, allocations: 0.6937 MB / 274.3 MB, free: 148 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001863/0.04213, allocations: 1.389 MB / 275.7 MB, free: 14.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.04213, allocations: 7.938 kB / 275.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.04214, allocations: 0 / 275.7 MB, free: 14.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.873e-05/0.04218, allocations: 0 / 275.7 MB, free: 14.74 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.002724/0.04491, allocations: 2.135 MB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.04496, allocations: 12.03 kB / 277.8 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006504/0.04561, allocations: 391.6 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.04684, allocations: 0.9598 MB / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.799e-05/0.04691, allocations: 115.5 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.04706, allocations: 160.3 kB / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.04862, allocations: 1.291 MB / 280.7 MB, free: 9.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.493e-05/0.04867, allocations: 11.95 kB / 280.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.792e-05/0.04876, allocations: 63.94 kB / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/0.0488, allocations: 40 kB / 280.8 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008731/0.04967, allocations: 0.554 MB / 281.4 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005936/0.05561, allocations: 6.418 MB / 287.8 MB, free: 2.031 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.05606, allocations: 261.4 kB / 288 MB, free: 1.762 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.05628, allocations: 133.1 kB / 288.2 MB, free: 1.629 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.05632, allocations: 12.5 kB / 288.2 MB, free: 1.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003636/0.05668, allocations: 271.4 kB / 288.5 MB, free: 1.312 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.295e-06/0.05669, allocations: 0 / 288.5 MB, free: 1.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002434/0.05912, allocations: 1.265 MB / 289.7 MB, free: 8 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.852e-05/0.05921, allocations: 166.7 kB / 289.9 MB, free: 15.81 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/0.06044, allocations: 1.071 MB / 291 MB, free: 14.72 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.06048, allocations: 37.7 kB / 291 MB, free: 14.68 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006/0.06108, allocations: 0.9657 MB / 292 MB, free: 13.7 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.06122, allocations: 210.3 kB / 292.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.06142, allocations: 228.4 kB / 292.4 MB, free: 13.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.06159, allocations: 0.516 MB / 292.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002242/0.06181, allocations: 148.2 kB / 293 MB, free: 12.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005992/0.06241, allocations: 1.08 MB / 294.1 MB, free: 11.1 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009524/0.06336, allocations: 1.171 MB / 295.3 MB, free: 9.559 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.06337, allocations: 4 kB / 295.3 MB, free: 9.555 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001477/0.06485, allocations: 1.046 MB / 296.3 MB, free: 8.48 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.06489, allocations: 37.7 kB / 296.4 MB, free: 8.438 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.06491, allocations: 24.78 kB / 296.4 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.0651, allocations: 75.28 kB / 296.5 MB, free: 8.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.06555, allocations: 259.6 kB / 296.7 MB, free: 8.078 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.06721, allocations: 3.495 MB / 300.2 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000692/0.0679, allocations: 59.94 kB / 300.3 MB, free: 4.281 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.083e-05/0.06796, allocations: 60 kB / 300.3 MB, free: 4.223 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.0003291/0.06829, allocations: 256.1 kB / 300.6 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.06842, allocations: 139.2 kB / 300.7 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005436/0.06896, allocations: 428.6 kB / 301.2 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.06897, allocations: 7.938 kB / 301.2 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.06897, allocations: 0 / 301.2 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.06898, allocations: 3.984 kB / 301.2 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/0.07081, allocations: 1.537 MB / 302.7 MB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.07082, allocations: 7.938 kB / 302.7 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.07105, allocations: 95.89 kB / 302.8 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000114/0.07117, allocations: 55.77 kB / 302.9 MB, free: 1.555 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.07119, allocations: 19.98 kB / 302.9 MB, free: 1.535 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.07256, allocations: 3.468 MB / 306.3 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.07257, allocations: 4 kB / 306.3 MB, free: 13.82 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007798/0.07335, allocations: 0.8059 MB / 307.2 MB, free: 12.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002955/0.07364, allocations: 163.2 kB / 307.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.119e-05/0.07372, allocations: 16 kB / 307.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.07396, allocations: 24.05 kB / 307.4 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.579e-05/0.07406, allocations: 59.78 kB / 307.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.07408, allocations: 20 kB / 307.4 MB, free: 12.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006091/0.07469, allocations: 0.6261 MB / 308.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.07469, allocations: 0 / 308.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008744/0.07556, allocations: 300 kB / 308.4 MB, free: 11.72 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.0002354/0.0758, allocations: 135.1 kB / 308.5 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.07683, allocations: 0.9117 MB / 309.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.07684, allocations: 8 kB / 309.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003302/0.07717, allocations: 495.8 kB / 309.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008821/0.07805, allocations: 322.6 kB / 310.2 MB, free: 9.777 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003282/0.08133, allocations: 2.407 MB / 312.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/0.0815, allocations: 228.2 kB / 312.8 MB, free: 7.012 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003554/0.08185, allocations: 158.1 kB / 313 MB, free: 6.855 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.08196, allocations: 80.48 kB / 313.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of SimCode: time 1.103e-06/0.08196, allocations: 0 / 313.1 MB, free: 6.777 MB / 298.7 MB Notification: Performance of Templates: time 0.0211/0.1031, allocations: 15.26 MB / 328.3 MB, free: 7.539 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.3745541679672897]