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.001385/0.001385, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001769/0.003155, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001125/0.001125, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001736/0.002861, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.9329/0.9329, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.163/1.096, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.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.864e-06/1.864e-06, allocations: 0 / 222 MB, free: 64 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.284e-05/2.471e-05, allocations: 6.312 kB / 222 MB, free: 56 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01406/0.01409, allocations: 11.82 MB / 233.8 MB, free: 4.176 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008074/0.02216, allocations: 3.401 MB / 237.2 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.02376, allocations: 43.81 kB / 237.3 MB, free: 0.7188 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.02553, allocations: 0.6788 MB / 237.9 MB, free: 36 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002191/0.02772, allocations: 0.8179 MB / 238.8 MB, free: 15.21 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008751/0.0286, allocations: 403.5 kB / 239.1 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003187/0.03179, allocations: 2.524 MB / 241.7 MB, free: 12.29 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.03313, allocations: 0.6266 MB / 242.3 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003485/0.03661, allocations: 1.625 MB / 243.9 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/0.03823, allocations: 0.7673 MB / 244.7 MB, free: 9.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006717/0.0389, allocations: 227.9 kB / 244.9 MB, free: 8.957 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006936/0.03959, allocations: 263.9 kB / 245.2 MB, free: 8.699 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004171/0.04001, allocations: 346.9 kB / 245.5 MB, free: 8.359 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009553/0.04096, allocations: 0.6238 MB / 246.1 MB, free: 7.734 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001993/0.04296, allocations: 1.409 MB / 247.5 MB, free: 6.32 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.429e-05/0.04297, allocations: 0 / 247.5 MB, free: 6.32 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.04297, allocations: 4 kB / 247.5 MB, free: 6.316 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.513e-05/0.04303, allocations: 0 / 247.5 MB, free: 6.316 MB / 250.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.003638/0.04667, allocations: 2.467 MB / 250 MB, free: 3.812 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.04671, allocations: 16.02 kB / 250 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008154/0.04752, allocations: 421.7 kB / 250.4 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.04885, allocations: 0.7929 MB / 251.2 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-05/0.04892, allocations: 119.4 kB / 251.4 MB, free: 2.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.0491, allocations: 164.3 kB / 251.5 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.0505, allocations: 1.171 MB / 252.7 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.653e-05/0.05055, allocations: 11.94 kB / 252.7 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.771e-05/0.05064, allocations: 64 kB / 252.8 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.348e-05/0.05067, allocations: 40 kB / 252.8 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006694/0.05134, allocations: 402.8 kB / 253.2 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005674/0.05701, allocations: 4.742 MB / 257.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007266/0.05774, allocations: 355.8 kB / 258.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004282/0.05817, allocations: 250.6 kB / 258.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.148e-05/0.05821, allocations: 12.66 kB / 258.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.05825, allocations: 43.22 kB / 258.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.585e-06/0.05825, allocations: 0 / 258.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002647/0.06089, allocations: 1.242 MB / 259.8 MB, free: 9.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.06093, allocations: 60.06 kB / 259.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.06197, allocations: 1.005 MB / 260.9 MB, free: 8.434 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.658e-05/0.06201, allocations: 41.7 kB / 260.9 MB, free: 8.387 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004424/0.06245, allocations: 0.7352 MB / 261.7 MB, free: 7.641 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001963/0.06265, allocations: 269.7 kB / 261.9 MB, free: 7.375 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002228/0.06287, allocations: 218.7 kB / 262.1 MB, free: 7.156 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.06299, allocations: 353.8 kB / 262.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.06317, allocations: 102.5 kB / 262.6 MB, free: 6.703 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006834/0.06386, allocations: 0.6091 MB / 263.2 MB, free: 5.867 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008466/0.0647, allocations: 0.838 MB / 264 MB, free: 4.816 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/0.06471, allocations: 4 kB / 264 MB, free: 4.812 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001253/0.06597, allocations: 0.746 MB / 264.8 MB, free: 4.051 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.06599, allocations: 16.12 kB / 264.8 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.06602, allocations: 19.94 kB / 264.8 MB, free: 4.016 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005357/0.06655, allocations: 162.1 kB / 265 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007466/0.0673, allocations: 287.6 kB / 265.3 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002097/0.0694, allocations: 3.778 MB / 269 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005588/0.06995, allocations: 60.03 kB / 269.1 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.314e-05/0.07, allocations: 44 kB / 269.1 MB, free: 15.43 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.0002637/0.07026, allocations: 193.3 kB / 269.3 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001134/0.07037, allocations: 95.89 kB / 269.4 MB, free: 15.13 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005327/0.07091, allocations: 476.2 kB / 269.9 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.07091, allocations: 11.94 kB / 269.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.07092, allocations: 0 / 269.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.07092, allocations: 3.984 kB / 269.9 MB, free: 14.63 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.07256, allocations: 1.219 MB / 271.1 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.07256, allocations: 8.031 kB / 271.1 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/0.07286, allocations: 151.8 kB / 271.3 MB, free: 13.17 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.07308, allocations: 119.1 kB / 271.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000342/0.07342, allocations: 170.1 kB / 271.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.07344, allocations: 23.98 kB / 271.6 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.07509, allocations: 3.833 MB / 275.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.07509, allocations: 7.938 kB / 275.4 MB, free: 8.754 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007411/0.07583, allocations: 0.7383 MB / 276.2 MB, free: 7.949 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.07595, allocations: 20 kB / 276.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.07621, allocations: 31.97 kB / 276.2 MB, free: 7.898 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.07631, allocations: 64.41 kB / 276.3 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.07634, allocations: 23.98 kB / 276.3 MB, free: 7.812 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004127/0.07675, allocations: 477.9 kB / 276.8 MB, free: 7.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.07675, allocations: 4 kB / 276.8 MB, free: 7.336 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001051/0.0778, allocations: 328 kB / 277.1 MB, free: 7.016 MB / 282.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.0001976/0.078, allocations: 108.2 kB / 277.2 MB, free: 6.902 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007581/0.07876, allocations: 0.8426 MB / 278 MB, free: 6.023 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.623e-05/0.07879, allocations: 24.16 kB / 278.1 MB, free: 6.004 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000429/0.07922, allocations: 0.5927 MB / 278.6 MB, free: 5.371 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001863/0.08109, allocations: 3.514 MB / 282.2 MB, free: 1.156 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1096/0.1907, allocations: 2.728 MB / 284.9 MB, free: 48.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.191, allocations: 262.7 kB / 285.1 MB, free: 48.89 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004975/0.1915, allocations: 157.6 kB / 285.3 MB, free: 48.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005087/0.192, allocations: 352.4 kB / 285.6 MB, free: 48.83 MB / 282.7 MB Notification: Performance of SimCode: time 1.623e-06/0.192, allocations: 0 / 285.6 MB, free: 48.83 MB / 282.7 MB Notification: Performance of Templates: time 0.02495/0.2169, allocations: 19.23 MB / 304.9 MB, free: 39.96 MB / 282.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2995899887755513]