Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001252/0.001252, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001002/0.001002, allocations: 166 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.9055/0.9055, allocations: 158.6 MB / 187.6 MB, free: 2.797 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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 251.6 MB, free: 7.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.725e-05/1.922e-05, allocations: 6.312 kB / 251.6 MB, free: 7.219 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01197/0.01199, allocations: 11.74 MB / 263.3 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004979/0.01697, allocations: 3.378 MB / 266.7 MB, free: 8.023 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007536/0.01772, allocations: 39.88 kB / 266.7 MB, free: 7.984 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.01899, allocations: 0.6749 MB / 267.4 MB, free: 7.305 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.02028, allocations: 0.8179 MB / 268.2 MB, free: 6.48 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000591/0.02087, allocations: 407.4 kB / 268.6 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002223/0.02309, allocations: 2.512 MB / 271.1 MB, free: 3.562 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007624/0.02386, allocations: 0.6266 MB / 271.8 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001512/0.02537, allocations: 1.422 MB / 273.2 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008706/0.02624, allocations: 0.775 MB / 274 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000236/0.02647, allocations: 224 kB / 274.2 MB, free: 464 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003445/0.02682, allocations: 264 kB / 274.4 MB, free: 200 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002205/0.02704, allocations: 470.2 kB / 274.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006868/0.02773, allocations: 0.7327 MB / 275.6 MB, free: 15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.02901, allocations: 1.483 MB / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.02901, allocations: 0 / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.02901, allocations: 4 kB / 277.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.394e-05/0.02905, allocations: 0 / 277.1 MB, free: 13.51 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002197/0.03125, allocations: 2.073 MB / 279.2 MB, free: 11.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.03128, allocations: 15.97 kB / 279.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005634/0.03184, allocations: 340.6 kB / 279.5 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009457/0.03279, allocations: 0.8008 MB / 280.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.756e-05/0.03284, allocations: 115.5 kB / 280.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.03297, allocations: 156.3 kB / 280.6 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.03399, allocations: 1.182 MB / 281.8 MB, free: 8.668 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/0.03402, allocations: 7.953 kB / 281.8 MB, free: 8.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/0.03409, allocations: 60 kB / 281.9 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.279e-05/0.03411, allocations: 40 kB / 281.9 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004681/0.03458, allocations: 398.8 kB / 282.3 MB, free: 8.164 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003872/0.03845, allocations: 4.707 MB / 287 MB, free: 3.176 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005402/0.03899, allocations: 359.7 kB / 287.4 MB, free: 2.816 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002975/0.03929, allocations: 246.7 kB / 287.6 MB, free: 2.574 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.03932, allocations: 12.66 kB / 287.6 MB, free: 2.562 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.03934, allocations: 51.2 kB / 287.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.944e-06/0.03934, allocations: 0 / 287.7 MB, free: 2.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001622/0.04097, allocations: 1.223 MB / 288.9 MB, free: 1.25 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.04101, allocations: 111.5 kB / 289 MB, free: 1.117 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007214/0.04173, allocations: 1.005 MB / 290 MB, free: 104 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.04176, allocations: 33.7 kB / 290 MB, free: 64 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003022/0.04206, allocations: 0.743 MB / 290.8 MB, free: 15.31 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.04218, allocations: 273.7 kB / 291 MB, free: 15.04 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/0.04234, allocations: 210.7 kB / 291.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.536e-05/0.04242, allocations: 357.8 kB / 291.6 MB, free: 14.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.04254, allocations: 98.56 kB / 291.7 MB, free: 14.38 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.04287, allocations: 0.6129 MB / 292.3 MB, free: 13.53 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005353/0.0434, allocations: 0.7873 MB / 293.1 MB, free: 12.54 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.04341, allocations: 4 kB / 293.1 MB, free: 12.53 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0007615/0.04417, allocations: 0.75 MB / 293.8 MB, free: 11.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.04419, allocations: 12 kB / 293.9 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.0442, allocations: 20.03 kB / 293.9 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003267/0.04453, allocations: 158.2 kB / 294 MB, free: 11.57 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004889/0.04502, allocations: 271.5 kB / 294.3 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001672/0.04669, allocations: 3.786 MB / 298.1 MB, free: 7.262 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.04703, allocations: 52.08 kB / 298.1 MB, free: 7.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.04707, allocations: 48 kB / 298.2 MB, free: 7.164 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002005/0.04728, allocations: 189.5 kB / 298.4 MB, free: 6.969 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.04738, allocations: 100 kB / 298.5 MB, free: 6.871 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005163/0.04789, allocations: 472.3 kB / 298.9 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.0479, allocations: 11.94 kB / 298.9 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.0479, allocations: 0 / 298.9 MB, free: 6.371 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.0479, allocations: 3.984 kB / 298.9 MB, free: 6.367 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.04922, allocations: 1.219 MB / 300.2 MB, free: 5.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.04922, allocations: 8.062 kB / 300.2 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003126/0.04953, allocations: 139.8 kB / 300.3 MB, free: 4.922 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003435/0.04988, allocations: 166.1 kB / 300.5 MB, free: 4.75 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.744e-05/0.0499, allocations: 23.92 kB / 300.5 MB, free: 4.727 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001666/0.05157, allocations: 3.841 MB / 304.3 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.05157, allocations: 8 kB / 304.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006577/0.05223, allocations: 0.7343 MB / 305.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001923/0.05242, allocations: 127.1 kB / 305.2 MB, free: 15.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.655e-05/0.0525, allocations: 19.98 kB / 305.2 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.05275, allocations: 31.98 kB / 305.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.39e-05/0.05283, allocations: 64.27 kB / 305.3 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.05285, allocations: 20 kB / 305.3 MB, free: 15.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003437/0.05319, allocations: 473.9 kB / 305.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05319, allocations: 0 / 305.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006269/0.05382, allocations: 331.9 kB / 306.1 MB, free: 14.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001537/0.05397, allocations: 116.3 kB / 306.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006576/0.05463, allocations: 0.8171 MB / 307 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.242e-05/0.05465, allocations: 19.69 kB / 307.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/0.05501, allocations: 0.5561 MB / 307.6 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007423/0.05575, allocations: 357 kB / 308 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.05845, allocations: 2.549 MB / 310.5 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.05862, allocations: 248.9 kB / 310.8 MB, free: 9.926 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003264/0.05894, allocations: 158.8 kB / 310.9 MB, free: 9.766 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004773/0.05942, allocations: 345.1 kB / 311.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.233e-06/0.05942, allocations: 0 / 311.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of Templates: time 0.0226/0.08202, allocations: 18.79 MB / 330 MB, free: 6.648 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_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_withLosses/DCPM_withLosses.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.196530298795551]