Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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.001517/0.001517, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002147/0.002147, allocations: 215.5 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.161/2.161, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.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.1.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.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002607/0.002607, allocations: 47.92 kB / 379 MB, free: 2.414 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3502, allocations: 53.36 MB / 432.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01795/0.3682, allocations: 8.623 MB / 441 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009218/0.3774, allocations: 3.557 MB / 444.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.3791, allocations: 59.62 kB / 444.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002692/0.3817, allocations: 0.6634 MB / 445.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004277/0.386, allocations: 0.9245 MB / 446.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001878/0.3879, allocations: 471.2 kB / 446.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005117/0.393, allocations: 2.665 MB / 449.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002622/0.3956, allocations: 1.113 MB / 450.4 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002781/0.3984, allocations: 1.238 MB / 451.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003749/0.4022, allocations: 1.549 MB / 453.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008976/0.4031, allocations: 304 kB / 453.5 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.4051, allocations: 0.5659 MB / 454.1 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001769/0.4068, allocations: 1.04 MB / 455.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002858/0.4097, allocations: 1.194 MB / 456.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008433/0.4181, allocations: 4.351 MB / 460.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.4181, allocations: 0 / 460.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4181, allocations: 0 / 460.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001466/0.4183, allocations: 0 / 460.7 MB, free: 10.23 MB / 366.1 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.01267/0.4309, allocations: 3.181 MB / 463.9 MB, free: 7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.431, allocations: 11.97 kB / 463.9 MB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002189/0.4332, allocations: 370.9 kB / 464.2 MB, free: 6.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0065/0.4397, allocations: 1.666 MB / 465.9 MB, free: 4.922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.4399, allocations: 152 kB / 466 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.441, allocations: 211.9 kB / 466.2 MB, free: 4.562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009643/0.4506, allocations: 2.795 MB / 469 MB, free: 1.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.865e-05/0.4507, allocations: 7.953 kB / 469 MB, free: 1.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003541/0.4511, allocations: 80 kB / 469.1 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/0.4513, allocations: 99.92 kB / 469.2 MB, free: 1.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008056/0.4594, allocations: 2.272 MB / 471.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02373/0.4831, allocations: 7.072 MB / 478.6 MB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004481/0.4876, allocations: 1.322 MB / 479.9 MB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002902/0.4905, allocations: 1.019 MB / 480.9 MB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00027/0.4908, allocations: 44.97 kB / 481 MB, free: 5.566 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/0.4908, allocations: 47.5 kB / 481 MB, free: 5.508 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 5.089e-06/0.4908, allocations: 0 / 481 MB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.02065/0.5115, allocations: 6.085 MB / 487.1 MB, free: 15.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.5115, allocations: 68.7 kB / 487.2 MB, free: 15.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004457/0.516, allocations: 2.039 MB / 489.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003378/0.5163, allocations: 49.69 kB / 489.2 MB, free: 13.2 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001439/0.5178, allocations: 1.148 MB / 490.4 MB, free: 12.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000828/0.5186, allocations: 479.9 kB / 490.9 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007038/0.5193, allocations: 247.5 kB / 491.1 MB, free: 11.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002378/0.5195, allocations: 357.9 kB / 491.4 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002422/0.522, allocations: 0.7574 MB / 492.2 MB, free: 10.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002781/0.5247, allocations: 1.014 MB / 493.2 MB, free: 9.105 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005522/0.5303, allocations: 1.869 MB / 495.1 MB, free: 7.145 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.538e-05/0.5303, allocations: 3.938 kB / 495.1 MB, free: 7.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.009696/0.54, allocations: 2.739 MB / 497.8 MB, free: 4.383 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.54, allocations: 8 kB / 497.8 MB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.54, allocations: 8 kB / 497.8 MB, free: 4.367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003905/0.5439, allocations: 0.7853 MB / 498.6 MB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/0.5462, allocations: 271.6 kB / 498.9 MB, free: 3.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02239/0.5686, allocations: 9.244 MB / 0.4962 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002571/0.5712, allocations: 87.89 kB / 0.4963 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003479/0.5715, allocations: 60.05 kB / 0.4964 GB, free: 9.715 MB / 414.1 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.003044/0.5746, allocations: 0.7355 MB / 0.4971 GB, free: 8.969 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/0.5757, allocations: 206.6 kB / 0.4973 GB, free: 8.766 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009037/0.5847, allocations: 2.472 MB / 0.4997 GB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.973e-05/0.5848, allocations: 15.98 kB / 0.4997 GB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.11e-05/0.5848, allocations: 8 kB / 0.4997 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-05/0.5848, allocations: 3.984 kB / 0.4997 GB, free: 6.246 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01834/0.6032, allocations: 4.377 MB / 0.504 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/0.6032, allocations: 0 / 0.504 GB, free: 1.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002396/0.6056, allocations: 215.7 kB / 0.5042 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004026/0.6096, allocations: 0.6538 MB / 0.5048 GB, free: 0.918 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002981/0.6099, allocations: 39.97 kB / 0.5049 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01912/0.629, allocations: 8.261 MB / 0.513 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.629, allocations: 0 / 0.513 GB, free: 8.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01293/0.642, allocations: 3.513 MB / 0.5164 GB, free: 4.762 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00244/0.6444, allocations: 362.6 kB / 0.5167 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007503/0.6452, allocations: 31.92 kB / 0.5168 GB, free: 4.375 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002136/0.6473, allocations: 87.84 kB / 0.5168 GB, free: 4.289 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005528/0.6479, allocations: 112.7 kB / 0.517 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002159/0.6481, allocations: 35.98 kB / 0.517 GB, free: 4.141 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004087/0.6522, allocations: 1.431 MB / 0.5184 GB, free: 2.719 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6522, allocations: 0 / 0.5184 GB, free: 2.719 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003424/0.6556, allocations: 0.5312 MB / 0.5189 GB, free: 2.188 MB / 430.1 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.002895/0.6585, allocations: 478.2 kB / 0.5194 GB, free: 1.863 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02499/0.6835, allocations: 2.298 MB / 0.5216 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.987e-06/0.6835, allocations: 3.938 kB / 0.5216 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005652/0.6891, allocations: 1.475 MB / 0.523 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004626/0.6937, allocations: 396.5 kB / 0.5234 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01762/0.7114, allocations: 5.205 MB / 0.5285 GB, free: 8.391 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003827/0.7152, allocations: 1.38 MB / 0.5299 GB, free: 6.973 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002698/0.7179, allocations: 378.8 kB / 0.5302 GB, free: 6.598 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009674/0.7189, allocations: 127.4 kB / 0.5303 GB, free: 6.473 MB / 446.1 MB Notification: Performance of SimCode: time 1.983e-06/0.7189, allocations: 0 / 0.5303 GB, free: 6.473 MB / 446.1 MB Notification: Performance of Templates: time 0.3595/1.078, allocations: 32.94 MB / 0.5625 GB, free: 85.1 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 10.43305256900203]