Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 78.8 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 145.7 kB / 23.93 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 173.4 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.121e-05/2.286e-05, allocations: 3.562 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01281/0.01283, allocations: 10.55 MB / 329.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007421/0.02025, allocations: 3.11 MB / 332.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00212/0.02237, allocations: 43.34 kB / 332.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.0248, allocations: 0.6438 MB / 333.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003105/0.02791, allocations: 0.8182 MB / 334.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001489/0.02939, allocations: 405 kB / 334.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004168/0.03356, allocations: 2.511 MB / 337 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001509/0.03507, allocations: 0.6159 MB / 337.6 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003294/0.03837, allocations: 1.394 MB / 339 MB, free: 6.121 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001971/0.04034, allocations: 0.713 MB / 339.7 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005245/0.04086, allocations: 229.4 kB / 340 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00108/0.04194, allocations: 274.2 kB / 340.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006132/0.04255, allocations: 460.9 kB / 340.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.04419, allocations: 0.7411 MB / 341.4 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003153/0.04735, allocations: 2.846 MB / 344.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.04735, allocations: 0 / 344.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.04735, allocations: 0 / 344.3 MB, free: 2.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.431e-05/0.04738, allocations: 0 / 344.3 MB, free: 2.258 MB / 302.1 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.003653/0.05103, allocations: 2.106 MB / 346.4 MB, free: 112 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.05107, allocations: 12.92 kB / 346.4 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009234/0.05199, allocations: 295.5 kB / 346.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00185/0.05384, allocations: 1.051 MB / 347.7 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.05394, allocations: 119.5 kB / 347.8 MB, free: 14.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002244/0.05417, allocations: 160.3 kB / 348 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/0.05684, allocations: 1.616 MB / 349.6 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.015e-05/0.05689, allocations: 11.95 kB / 349.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/0.05703, allocations: 64 kB / 349.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.902e-05/0.05707, allocations: 40 kB / 349.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002115/0.05919, allocations: 1.041 MB / 350.8 MB, free: 11.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007646/0.06683, allocations: 5.412 MB / 356.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.0684, allocations: 0.5735 MB / 356.7 MB, free: 5.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000954/0.06936, allocations: 422.7 kB / 357.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.509e-05/0.0694, allocations: 8.656 kB / 357.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.06944, allocations: 43.16 kB / 357.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.355e-06/0.06944, allocations: 0 / 357.2 MB, free: 4.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004938/0.07438, allocations: 2.154 MB / 359.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.07446, allocations: 111.5 kB / 359.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.07608, allocations: 1.176 MB / 360.6 MB, free: 1.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.07613, allocations: 37.7 kB / 360.7 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006876/0.07682, allocations: 0.8857 MB / 361.6 MB, free: 392 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.07703, allocations: 265.7 kB / 361.8 MB, free: 124 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003064/0.07733, allocations: 210.8 kB / 362 MB, free: 15.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.07751, allocations: 345.9 kB / 362.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006108/0.07812, allocations: 282.5 kB / 362.6 MB, free: 15.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.07913, allocations: 0.7887 MB / 363.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.08084, allocations: 1.085 MB / 364.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.08085, allocations: 11.88 kB / 364.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002457/0.08331, allocations: 1.249 MB / 365.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/0.08333, allocations: 16.06 kB / 365.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.08335, allocations: 19.98 kB / 365.8 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005104/0.08386, allocations: 130.4 kB / 365.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008844/0.08475, allocations: 259.6 kB / 366.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004211/0.08896, allocations: 4.244 MB / 370.4 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008583/0.08982, allocations: 64.08 kB / 370.5 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.531e-05/0.08989, allocations: 52 kB / 370.6 MB, free: 6.613 MB / 334.1 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.0006081/0.0905, allocations: 357.3 kB / 370.9 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.09069, allocations: 135.1 kB / 371 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.09256, allocations: 0.8165 MB / 371.9 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.09256, allocations: 4 kB / 371.9 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.09257, allocations: 4 kB / 371.9 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.09258, allocations: 3.984 kB / 371.9 MB, free: 5.273 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003646/0.09622, allocations: 1.969 MB / 373.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.09623, allocations: 4 kB / 373.8 MB, free: 3.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006041/0.09683, allocations: 128.3 kB / 374 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004476/0.09728, allocations: 134.4 kB / 374.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/0.09733, allocations: 20 kB / 374.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004508/0.1018, allocations: 4.385 MB / 378.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.1018, allocations: 8.062 kB / 378.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.1043, allocations: 1.281 MB / 379.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004972/0.1048, allocations: 195 kB / 380 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.105, allocations: 20 kB / 380 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006357/0.1056, allocations: 35.97 kB / 380 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.1057, allocations: 68.27 kB / 380.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.152e-05/0.1058, allocations: 24 kB / 380.1 MB, free: 12.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001288/0.1071, allocations: 0.7724 MB / 380.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1071, allocations: 0 / 380.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001224/0.1083, allocations: 331.9 kB / 381.2 MB, free: 11.43 MB / 350.1 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.0002539/0.1086, allocations: 135.4 kB / 381.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002001/0.1106, allocations: 1.077 MB / 382.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.1106, allocations: 320 / 382.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.1117, allocations: 0.6938 MB / 383.1 MB, free: 9.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.1132, allocations: 340 kB / 383.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00534/0.1185, allocations: 2.776 MB / 386.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000733/0.1193, allocations: 0.6337 MB / 386.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005595/0.1198, allocations: 158.8 kB / 387 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002202/0.12, allocations: 84.48 kB / 387.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of SimCode: time 8.61e-07/0.12, allocations: 0 / 387.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of Templates: time 0.0325/0.1525, allocations: 17.2 MB / 404.3 MB, free: 4.402 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.078516468405724]