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.0009681/0.0009681, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.0009031/0.0009031, allocations: 167.7 kB / 25.33 MB, free: 9.449 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.9211/0.9211, allocations: 158.6 MB / 187.2 MB, free: 2.555 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 3.096e-06/3.096e-06, allocations: 3.984 kB / 251.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/3.022e-05, allocations: 5.406 kB / 251.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01056/0.01059, allocations: 11.63 MB / 262.7 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006158/0.01675, allocations: 3.188 MB / 265.9 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.0185, allocations: 39.88 kB / 265.9 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001779/0.02027, allocations: 0.6244 MB / 266.6 MB, free: 4.008 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00211/0.02238, allocations: 0.7597 MB / 267.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007994/0.02318, allocations: 407.4 kB / 267.7 MB, free: 2.844 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002554/0.02574, allocations: 2.326 MB / 270 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.02678, allocations: 0.6107 MB / 270.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001921/0.0287, allocations: 1.313 MB / 272 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001347/0.03005, allocations: 0.7128 MB / 272.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004288/0.03047, allocations: 216 kB / 272.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005186/0.03099, allocations: 259.9 kB / 273.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003195/0.03131, allocations: 446.3 kB / 273.6 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.03238, allocations: 0.7015 MB / 274.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001793/0.03418, allocations: 1.401 MB / 275.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.03418, allocations: 3.938 kB / 275.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.03418, allocations: 0 / 275.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.441e-05/0.03425, allocations: 0 / 275.7 MB, free: 10.8 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.002816/0.03706, allocations: 2.139 MB / 277.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.03711, allocations: 16.02 kB / 277.8 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006477/0.03776, allocations: 387.6 kB / 278.2 MB, free: 8.211 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.03912, allocations: 0.983 MB / 279.2 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.765e-05/0.03919, allocations: 115.5 kB / 279.3 MB, free: 7.078 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001615/0.03935, allocations: 160.3 kB / 279.5 MB, free: 6.922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.04095, allocations: 1.299 MB / 280.8 MB, free: 5.504 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.143e-05/0.041, allocations: 3.953 kB / 280.8 MB, free: 5.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.277e-05/0.04107, allocations: 64 kB / 280.8 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.333e-05/0.0411, allocations: 40 kB / 280.9 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008839/0.04199, allocations: 0.5501 MB / 281.4 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00552/0.04751, allocations: 6.422 MB / 287.8 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003658/0.04787, allocations: 269.4 kB / 288.1 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.04806, allocations: 121.1 kB / 288.2 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.04808, allocations: 8.5 kB / 288.2 MB, free: 13.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002554/0.04834, allocations: 271.4 kB / 288.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 2.094e-06/0.04834, allocations: 0 / 288.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.001756/0.0501, allocations: 1.277 MB / 289.8 MB, free: 12.04 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.05016, allocations: 162.7 kB / 289.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009696/0.05113, allocations: 1.079 MB / 291 MB, free: 10.75 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.05116, allocations: 33.7 kB / 291 MB, free: 10.71 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004795/0.05164, allocations: 0.9579 MB / 292 MB, free: 9.738 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.05177, allocations: 214.2 kB / 292.2 MB, free: 9.527 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.05196, allocations: 224.4 kB / 292.4 MB, free: 9.301 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004311/0.05239, allocations: 0.5199 MB / 293 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.0526, allocations: 152.2 kB / 293.1 MB, free: 8.617 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006201/0.05322, allocations: 1.076 MB / 294.2 MB, free: 7.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009083/0.05413, allocations: 1.164 MB / 295.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.954e-06/0.05413, allocations: 4 kB / 295.3 MB, free: 5.594 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001121/0.05525, allocations: 1.047 MB / 296.4 MB, free: 4.52 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.05529, allocations: 48.36 kB / 296.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.0553, allocations: 24 kB / 296.5 MB, free: 4.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.05546, allocations: 59.36 kB / 296.5 MB, free: 4.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.05591, allocations: 267.5 kB / 296.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001974/0.05788, allocations: 3.491 MB / 300.3 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004602/0.05834, allocations: 72.11 kB / 300.3 MB, free: 320 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-05/0.0584, allocations: 60 kB / 300.4 MB, free: 260 kB / 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.0002526/0.05865, allocations: 248 kB / 300.6 MB, free: 0 / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1264/0.185, allocations: 135.7 kB / 300.8 MB, free: 52.95 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009644/0.186, allocations: 423.3 kB / 301.2 MB, free: 52.87 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.186, allocations: 9.688 kB / 301.2 MB, free: 52.87 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.186, allocations: 0.5938 kB / 301.2 MB, free: 52.87 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.186, allocations: 3.391 kB / 301.2 MB, free: 52.87 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002648/0.1887, allocations: 1.533 MB / 302.7 MB, free: 52.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.1887, allocations: 4.344 kB / 302.7 MB, free: 52.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.189, allocations: 105.8 kB / 302.8 MB, free: 52.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001943/0.1892, allocations: 45.95 kB / 302.9 MB, free: 52.34 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.1893, allocations: 15.56 kB / 302.9 MB, free: 52.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00158/0.1909, allocations: 3.464 MB / 306.4 MB, free: 48.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.1909, allocations: 3.531 kB / 306.4 MB, free: 48.91 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.1919, allocations: 0.8114 MB / 307.2 MB, free: 48.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000404/0.1923, allocations: 159.8 kB / 307.3 MB, free: 48.5 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.1924, allocations: 17.39 kB / 307.4 MB, free: 48.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002745/0.1927, allocations: 26.12 kB / 307.4 MB, free: 48.5 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.1928, allocations: 62.38 kB / 307.4 MB, free: 48.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.1929, allocations: 19.3 kB / 307.5 MB, free: 48.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0009784/0.1939, allocations: 0.6312 MB / 308.1 MB, free: 48.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1939, allocations: 0 / 308.1 MB, free: 48.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001036/0.1949, allocations: 298.4 kB / 308.4 MB, free: 48.34 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.0002677/0.1952, allocations: 135 kB / 308.5 MB, free: 48.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001305/0.1965, allocations: 0.9166 MB / 309.4 MB, free: 47.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.1965, allocations: 0 / 309.4 MB, free: 47.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004287/0.1969, allocations: 0.4896 MB / 309.9 MB, free: 47.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.1979, allocations: 326 kB / 310.2 MB, free: 47.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004651/0.2026, allocations: 2.385 MB / 312.6 MB, free: 46.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/0.203, allocations: 231.5 kB / 312.9 MB, free: 46.02 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005755/0.2035, allocations: 152.8 kB / 313 MB, free: 45.98 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.2037, allocations: 87.19 kB / 313.1 MB, free: 45.97 MB / 282.7 MB Notification: Performance of SimCode: time 2.355e-06/0.2037, allocations: 0 / 313.1 MB, free: 45.97 MB / 282.7 MB Notification: Performance of Templates: time 0.0206/0.2243, allocations: 14.39 MB / 327.5 MB, free: 36.79 MB / 282.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.513684898149222]