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.001099/0.001099, allocations: 84 kB / 21.43 MB, free: 3.133 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.005739/0.005739, allocations: 148.3 kB / 24.68 MB, free: 9.434 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.8328/0.8328, allocations: 173.4 MB / 201.2 MB, free: 9.422 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.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|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.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|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.433e-06/1.433e-06, allocations: 0 / 319.7 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.077e-05, allocations: 6.219 kB / 319.7 MB, free: 5.801 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.006883/0.006904, allocations: 8.56 MB / 328.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003603/0.01051, allocations: 3.366 MB / 331.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004719/0.01098, allocations: 59.62 kB / 331.7 MB, free: 9.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.01211, allocations: 0.6636 MB / 332.4 MB, free: 9.098 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001144/0.01325, allocations: 0.9199 MB / 333.3 MB, free: 8.172 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.0138, allocations: 461.9 kB / 333.8 MB, free: 7.723 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001591/0.01539, allocations: 2.735 MB / 336.5 MB, free: 4.973 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009061/0.0163, allocations: 1.069 MB / 337.6 MB, free: 3.848 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001219/0.01752, allocations: 1.758 MB / 339.3 MB, free: 2.086 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.01858, allocations: 1.305 MB / 340.6 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002353/0.01882, allocations: 304 kB / 340.9 MB, free: 488 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000563/0.01938, allocations: 0.554 MB / 341.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006977/0.02008, allocations: 1.059 MB / 342.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000608/0.02069, allocations: 0.9975 MB / 343.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002459/0.02315, allocations: 4.311 MB / 347.8 MB, free: 9.535 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.02315, allocations: 8 kB / 347.9 MB, free: 9.527 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.02315, allocations: 0 / 347.9 MB, free: 9.527 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.512e-05/0.02318, allocations: 0 / 347.9 MB, free: 9.527 MB / 314.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.003206/0.02638, allocations: 3.138 MB / 351 MB, free: 6.336 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.02642, allocations: 8.922 kB / 351 MB, free: 6.328 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004445/0.02686, allocations: 338.9 kB / 351.3 MB, free: 5.996 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.0285, allocations: 1.641 MB / 353 MB, free: 4.316 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.334e-05/0.02857, allocations: 148.4 kB / 353.1 MB, free: 4.168 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001963/0.02877, allocations: 212.3 kB / 353.3 MB, free: 3.961 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.03147, allocations: 2.798 MB / 356.1 MB, free: 1.059 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.084e-05/0.03151, allocations: 15.98 kB / 356.1 MB, free: 1.043 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.03163, allocations: 76 kB / 356.2 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.027e-05/0.0317, allocations: 95.92 kB / 356.3 MB, free: 0.875 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002596/0.0343, allocations: 2.276 MB / 358.6 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007329/0.04163, allocations: 7.078 MB / 365.7 MB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.04328, allocations: 1.31 MB / 367 MB, free: 6.012 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001125/0.04441, allocations: 1.026 MB / 368 MB, free: 4.988 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001431/0.04455, allocations: 52.97 kB / 368 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.04458, allocations: 43.56 kB / 368.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.387e-06/0.04458, allocations: 0 / 368.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=132): time 0.007459/0.05204, allocations: 6.077 MB / 374.2 MB, free: 14.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.05208, allocations: 64.72 kB / 374.2 MB, free: 14.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.0537, allocations: 2.014 MB / 376.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.353e-05/0.05376, allocations: 45.7 kB / 376.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005243/0.05429, allocations: 1.14 MB / 377.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000234/0.05452, allocations: 475.9 kB / 377.9 MB, free: 11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/0.05477, allocations: 239.6 kB / 378.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.05501, allocations: 357.9 kB / 378.5 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000776/0.05578, allocations: 0.7613 MB / 379.2 MB, free: 9.637 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008803/0.05666, allocations: 1.013 MB / 380.3 MB, free: 8.535 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.05837, allocations: 1.861 MB / 382.1 MB, free: 6.582 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.05838, allocations: 0 / 382.1 MB, free: 6.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.002897/0.06127, allocations: 2.742 MB / 384.9 MB, free: 3.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.06129, allocations: 11.98 kB / 384.9 MB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.06131, allocations: 4 kB / 384.9 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/0.06256, allocations: 0.7774 MB / 385.6 MB, free: 3.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005492/0.06311, allocations: 279.5 kB / 385.9 MB, free: 2.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00737/0.07048, allocations: 9.233 MB / 395.2 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006864/0.07116, allocations: 95.83 kB / 395.2 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.348e-05/0.07125, allocations: 51.98 kB / 395.3 MB, free: 9.168 MB / 362.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%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009941/0.07224, allocations: 0.7395 MB / 396 MB, free: 8.418 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002237/0.07246, allocations: 198.7 kB / 396.2 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002709/0.07517, allocations: 2.472 MB / 398.7 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.07519, allocations: 12 kB / 398.7 MB, free: 5.715 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.0752, allocations: 8 kB / 398.7 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.07521, allocations: 11.97 kB / 398.7 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005157/0.08037, allocations: 4.366 MB / 403.1 MB, free: 1.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.08037, allocations: 4.031 kB / 403.1 MB, free: 1.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005012/0.08087, allocations: 215.7 kB / 403.3 MB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009523/0.08182, allocations: 0.6544 MB / 404 MB, free: 384 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.381e-05/0.08189, allocations: 39.84 kB / 404 MB, free: 344 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005908/0.0878, allocations: 8.25 MB / 412.3 MB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.0878, allocations: 7.969 kB / 412.3 MB, free: 7.789 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00386/0.09166, allocations: 3.513 MB / 415.8 MB, free: 4.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005667/0.09223, allocations: 354.6 kB / 416.1 MB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.09236, allocations: 36.05 kB / 416.2 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004736/0.09284, allocations: 83.91 kB / 416.2 MB, free: 3.766 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.09304, allocations: 104.8 kB / 416.3 MB, free: 3.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.08e-05/0.0931, allocations: 39.98 kB / 416.4 MB, free: 3.621 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001346/0.09444, allocations: 1.414 MB / 417.8 MB, free: 2.215 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.09444, allocations: 0 / 417.8 MB, free: 2.215 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0013/0.09574, allocations: 0.5195 MB / 418.3 MB, free: 1.695 MB / 378.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.0009006/0.09664, allocations: 490.3 kB / 418.8 MB, free: 1.359 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002609/0.09925, allocations: 2.303 MB / 421.1 MB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.09926, allocations: 0 / 421.1 MB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00156/0.1008, allocations: 1.463 MB / 422.6 MB, free: 13.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001015/0.1018, allocations: 386.8 kB / 422.9 MB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005441/0.1073, allocations: 5.062 MB / 428 MB, free: 8.027 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00117/0.1084, allocations: 1.36 MB / 429.4 MB, free: 6.625 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.1087, allocations: 132.5 kB / 429.5 MB, free: 6.496 MB / 394.7 MB Notification: Performance of SimCode: time 1.193e-06/0.1087, allocations: 0 / 429.5 MB, free: 6.496 MB / 394.7 MB Notification: Performance of Templates: time 0.175/0.2838, allocations: 64.04 MB / 493.5 MB, free: 87.62 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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: 9.311530568636954]