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.001197/0.001197, allocations: 76.81 kB / 22.28 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.00167/0.00167, allocations: 167.6 kB / 25.7 MB, free: 8.43 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.8704/0.8704, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.523e-06/1.523e-06, allocations: 0 / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.152e-05/1.305e-05, allocations: 6.312 kB / 251.6 MB, free: 7.211 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01172/0.01174, allocations: 11.37 MB / 263 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004562/0.0163, allocations: 3.281 MB / 266.2 MB, free: 8.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005696/0.01687, allocations: 43.81 kB / 266.3 MB, free: 8.441 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.01795, allocations: 0.6439 MB / 266.9 MB, free: 7.793 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001052/0.01901, allocations: 0.7519 MB / 267.7 MB, free: 7.035 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005805/0.01959, allocations: 411.4 kB / 268.1 MB, free: 6.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.02121, allocations: 2.33 MB / 270.4 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007337/0.02194, allocations: 0.6263 MB / 271 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001267/0.02321, allocations: 1.333 MB / 272.4 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006996/0.02391, allocations: 0.7089 MB / 273.1 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001905/0.0241, allocations: 212 kB / 273.3 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002805/0.02438, allocations: 259.9 kB / 273.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.02458, allocations: 438.3 kB / 274 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000474/0.02506, allocations: 0.6937 MB / 274.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001008/0.02606, allocations: 1.393 MB / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.02607, allocations: 0 / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.02607, allocations: 0 / 276.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.02609, allocations: 4 kB / 276.1 MB, free: 14.57 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.001762/0.02785, allocations: 1.981 MB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.02788, allocations: 12.03 kB / 278.1 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004901/0.02837, allocations: 324.7 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008332/0.02921, allocations: 0.745 MB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.11e-05/0.02927, allocations: 119.5 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001174/0.02938, allocations: 156.3 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009312/0.03032, allocations: 1.181 MB / 280.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.637e-05/0.03035, allocations: 7.953 kB / 280.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.004e-05/0.03041, allocations: 60 kB / 280.6 MB, free: 9.816 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.03044, allocations: 40 kB / 280.7 MB, free: 9.777 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004627/0.0309, allocations: 394.2 kB / 281.1 MB, free: 9.383 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003926/0.03482, allocations: 5.101 MB / 286.2 MB, free: 3.953 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.0351, allocations: 220.8 kB / 286.4 MB, free: 3.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.03523, allocations: 106.2 kB / 286.5 MB, free: 3.625 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.03525, allocations: 12.5 kB / 286.5 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.03548, allocations: 245.2 kB / 286.7 MB, free: 3.34 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.603e-06/0.03548, allocations: 3.938 kB / 286.7 MB, free: 3.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001206/0.03669, allocations: 0.9419 MB / 287.7 MB, free: 2.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.03675, allocations: 166.7 kB / 287.8 MB, free: 2.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006657/0.03741, allocations: 0.9585 MB / 288.8 MB, free: 1.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.03744, allocations: 37.7 kB / 288.8 MB, free: 1.145 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003342/0.03777, allocations: 0.7812 MB / 289.6 MB, free: 360 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.03788, allocations: 214.2 kB / 289.8 MB, free: 144 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.03804, allocations: 222.7 kB / 290 MB, free: 15.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.597e-05/0.03813, allocations: 353.8 kB / 290.4 MB, free: 15.56 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.03824, allocations: 124.3 kB / 290.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004246/0.03866, allocations: 0.8076 MB / 291.3 MB, free: 14.32 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.03927, allocations: 0.8986 MB / 292.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.03928, allocations: 4 kB / 292.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0006921/0.03997, allocations: 0.8085 MB / 293 MB, free: 12.31 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.04, allocations: 37.7 kB / 293.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.04001, allocations: 20 kB / 293.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001194/0.04013, allocations: 57.69 kB / 293.1 MB, free: 12.19 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004413/0.04057, allocations: 287.5 kB / 293.4 MB, free: 11.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.04165, allocations: 2.344 MB / 295.8 MB, free: 9.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003659/0.04202, allocations: 72.14 kB / 295.8 MB, free: 9.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.04206, allocations: 51.98 kB / 295.9 MB, free: 9.27 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.0001851/0.04224, allocations: 193.3 kB / 296.1 MB, free: 9.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.244e-05/0.04231, allocations: 91.84 kB / 296.2 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003183/0.04263, allocations: 327.9 kB / 296.5 MB, free: 8.652 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.04264, allocations: 8 kB / 296.5 MB, free: 8.645 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.604e-06/0.04264, allocations: 0 / 296.5 MB, free: 8.645 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.04264, allocations: 7.984 kB / 296.5 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001188/0.04383, allocations: 1.012 MB / 297.5 MB, free: 7.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.04384, allocations: 4 kB / 297.5 MB, free: 7.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.04407, allocations: 111.9 kB / 297.6 MB, free: 7.426 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.427e-05/0.04414, allocations: 33.7 kB / 297.7 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.04416, allocations: 15.98 kB / 297.7 MB, free: 7.371 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008397/0.045, allocations: 2.328 MB / 300 MB, free: 4.871 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.045, allocations: 11.92 kB / 300 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004229/0.04543, allocations: 0.5724 MB / 300.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.04559, allocations: 111.2 kB / 300.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.448e-05/0.04565, allocations: 16 kB / 300.7 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.04586, allocations: 27.98 kB / 300.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.692e-05/0.04592, allocations: 59.78 kB / 300.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.04594, allocations: 12 kB / 300.8 MB, free: 3.992 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003346/0.04627, allocations: 463.5 kB / 301.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.04627, allocations: 0 / 301.3 MB, free: 3.531 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005455/0.04682, allocations: 304 kB / 301.6 MB, free: 3.234 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.000136/0.04695, allocations: 108.2 kB / 301.7 MB, free: 3.121 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005654/0.04752, allocations: 0.7615 MB / 302.4 MB, free: 2.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.61e-05/0.04755, allocations: 21.81 kB / 302.4 MB, free: 2.297 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002211/0.04777, allocations: 372 kB / 302.8 MB, free: 1.906 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006476/0.04841, allocations: 310.4 kB / 303.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.05092, allocations: 2.262 MB / 305.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001415/0.05106, allocations: 232.2 kB / 305.6 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002831/0.05134, allocations: 154.1 kB / 305.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003951/0.05174, allocations: 317.1 kB / 306.1 MB, free: 14.54 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.05174, allocations: 0 / 306.1 MB, free: 14.54 MB / 298.7 MB Notification: Performance of Templates: time 0.01822/0.06996, allocations: 15.56 MB / 321.6 MB, free: 14.99 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 -s gbode -gbm=radauIIA3 -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.9958537542261183]