Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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.001472/0.001472, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001568/0.001568, allocations: 145.7 kB / 24.89 MB, free: 8.742 MB / 18.57 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 0.8836/0.8836, allocations: 173.4 MB / 201.5 MB, free: 8.27 MB / 186.7 MB " [Timeout remaining time 179] 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.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|PI.x|aimc.is.[0-9,]+.|aimc.idq_rr.[0-9,]+.|aimc.idq_sr.[0-9,]+.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 268.5 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.111e-05/1.226e-05, allocations: 6.094 kB / 268.5 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.00717/0.007182, allocations: 9.35 MB / 277.9 MB, free: 396 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004272/0.01145, allocations: 3.61 MB / 281.5 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004838/0.01194, allocations: 59.62 kB / 281.5 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001047/0.01299, allocations: 0.6713 MB / 282.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.01415, allocations: 0.912 MB / 283.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.0147, allocations: 471 kB / 283.6 MB, free: 10.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001622/0.01632, allocations: 2.731 MB / 286.3 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000883/0.0172, allocations: 1.12 MB / 287.4 MB, free: 6.711 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001507/0.01871, allocations: 1.992 MB / 289.4 MB, free: 4.715 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00106/0.01977, allocations: 1.333 MB / 290.8 MB, free: 3.379 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002745/0.02005, allocations: 292 kB / 291 MB, free: 3.094 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005664/0.02061, allocations: 0.5462 MB / 291.6 MB, free: 2.547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005762/0.02119, allocations: 1.04 MB / 292.6 MB, free: 1.504 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006294/0.02182, allocations: 0.9664 MB / 293.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001666/0.02348, allocations: 2.449 MB / 296 MB, free: 14.08 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.02349, allocations: 0 / 296 MB, free: 14.08 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.02349, allocations: 0 / 296 MB, free: 14.08 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.654e-05/0.02352, allocations: 4 kB / 296 MB, free: 14.07 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.002604/0.02613, allocations: 2.933 MB / 299 MB, free: 11.09 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.68e-05/0.02615, allocations: 12.03 kB / 299 MB, free: 11.08 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000517/0.02667, allocations: 384.6 kB / 299.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.02788, allocations: 1.189 MB / 300.6 MB, free: 9.469 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.411e-05/0.02795, allocations: 148.4 kB / 300.7 MB, free: 9.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.02815, allocations: 208.3 kB / 300.9 MB, free: 9.117 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.02962, allocations: 1.57 MB / 302.5 MB, free: 7.441 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.635e-05/0.02965, allocations: 7.953 kB / 302.5 MB, free: 7.434 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.02976, allocations: 76 kB / 302.6 MB, free: 7.359 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.29e-05/0.02984, allocations: 99.92 kB / 302.6 MB, free: 7.262 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008136/0.03065, allocations: 0.5945 MB / 303.2 MB, free: 6.664 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004875/0.03553, allocations: 4.874 MB / 308.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009237/0.03645, allocations: 0.7111 MB / 308.8 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005738/0.03702, allocations: 484.3 kB / 309.3 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/0.03714, allocations: 56.86 kB / 309.4 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.03716, allocations: 43.56 kB / 309.4 MB, free: 320 kB / 282.7 MB Notification: Performance of pre-optimization done (n=116): time 2.174e-06/0.03717, allocations: 0 / 309.4 MB, free: 320 kB / 282.7 MB Notification: Performance of matching and sorting (n=132): time 0.004247/0.04141, allocations: 2.77 MB / 312.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.04144, allocations: 64.72 kB / 312.2 MB, free: 13.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009114/0.04235, allocations: 1.394 MB / 313.6 MB, free: 12.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.606e-05/0.04242, allocations: 45.7 kB / 313.7 MB, free: 11.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003438/0.04276, allocations: 0.8583 MB / 314.5 MB, free: 11.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/0.04298, allocations: 475.8 kB / 315 MB, free: 10.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.04322, allocations: 231.4 kB / 315.2 MB, free: 10.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.803e-05/0.04331, allocations: 361.8 kB / 315.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.04355, allocations: 170.8 kB / 315.7 MB, free: 9.871 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.04387, allocations: 418 kB / 316.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006309/0.0445, allocations: 0.7148 MB / 316.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.0445, allocations: 0 / 316.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.001355/0.04586, allocations: 1.055 MB / 317.9 MB, free: 7.492 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.04588, allocations: 8 kB / 317.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.04588, allocations: 8 kB / 317.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.0469, allocations: 0.5303 MB / 318.5 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004995/0.0474, allocations: 239.6 kB / 318.7 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003683/0.05108, allocations: 4.617 MB / 323.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000365/0.05145, allocations: 48.05 kB / 323.4 MB, free: 1.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.836e-05/0.05152, allocations: 39.98 kB / 323.4 MB, free: 1.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * 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,6,100.0%), (5,34,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002973/0.05181, allocations: 184.4 kB / 323.6 MB, free: 1.629 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001954/0.05201, allocations: 155.8 kB / 323.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.05319, allocations: 1.008 MB / 324.7 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.05321, allocations: 16 kB / 324.8 MB, free: 436 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.05321, allocations: 8 kB / 324.8 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.05323, allocations: 11.91 kB / 324.8 MB, free: 416 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/0.05592, allocations: 2.247 MB / 327 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.05592, allocations: 0 / 327 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004341/0.05636, allocations: 179.8 kB / 327.2 MB, free: 13.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008301/0.05719, allocations: 483.3 kB / 327.7 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.694e-05/0.05724, allocations: 31.97 kB / 327.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003093/0.06034, allocations: 5.385 MB / 333.1 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.06034, allocations: 4 kB / 333.1 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.06182, allocations: 1.339 MB / 334.4 MB, free: 6.352 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.06212, allocations: 230.7 kB / 334.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.06224, allocations: 35.98 kB / 334.7 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003458/0.06259, allocations: 43.98 kB / 334.7 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.06272, allocations: 104.7 kB / 334.8 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.158e-05/0.06277, allocations: 31.97 kB / 334.9 MB, free: 5.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004664/0.06324, allocations: 0.6664 MB / 335.5 MB, free: 5.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.06324, allocations: 0 / 335.5 MB, free: 5.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008396/0.06408, allocations: 0.5038 MB / 336 MB, free: 4.746 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * 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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009909/0.06507, allocations: 0.542 MB / 336.6 MB, free: 4.387 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.06628, allocations: 1.16 MB / 337.7 MB, free: 3.199 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-05/0.0663, allocations: 24.56 kB / 337.8 MB, free: 3.172 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007959/0.06709, allocations: 0.9229 MB / 338.7 MB, free: 2.207 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008229/0.06792, allocations: 384.6 kB / 339.1 MB, free: 1.836 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/0.07175, allocations: 4.037 MB / 343.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.07216, allocations: 0.5699 MB / 343.7 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003952/0.07256, allocations: 197.4 kB / 343.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005589/0.07311, allocations: 377.1 kB / 344.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.07311, allocations: 4 kB / 344.2 MB, free: 12.55 MB / 330.7 MB Notification: Performance of Templates: time 0.1163/0.1894, allocations: 28.45 MB / 372.7 MB, free: 78.41 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_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.7315641939640045]