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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=100000,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=100000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 101.6 kB / 17.59 MB, free: 5.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 191.3 kB / 18.52 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009986/0.0009988, allocations: 50.89 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.14, allocations: 49.45 MB / 350.7 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01984/0.1599, allocations: 9.642 MB / 360.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.1713, allocations: 3.564 MB / 364 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002108/0.1735, allocations: 47.81 kB / 364 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003212/0.1767, allocations: 0.652 MB / 364.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004568/0.1813, allocations: 0.8388 MB / 365.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.1834, allocations: 473.6 kB / 366 MB, free: 5.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005144/0.1885, allocations: 2.619 MB / 368.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003842/0.1924, allocations: 1.881 MB / 370.5 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1794/0.3719, allocations: 1.175 MB / 371.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003289/0.3752, allocations: 1.551 MB / 373.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009066/0.3761, allocations: 306.7 kB / 373.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002123/0.3783, allocations: 0.563 MB / 374 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001556/0.3798, allocations: 0.9734 MB / 375 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002653/0.3825, allocations: 1.481 MB / 376.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005972/0.3885, allocations: 4.244 MB / 380.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3885, allocations: 0 / 380.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3885, allocations: 0 / 380.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001511/0.3887, allocations: 0 / 380.7 MB, free: 10.86 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.008597/0.3973, allocations: 3.156 MB / 383.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.3974, allocations: 9.844 kB / 383.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.3984, allocations: 328.5 kB / 384.2 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002915/0.4014, allocations: 1.657 MB / 385.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.4015, allocations: 155.5 kB / 386 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003738/0.4019, allocations: 208.8 kB / 386.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005025/0.4069, allocations: 2.694 MB / 388.9 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.596e-05/0.407, allocations: 7.609 kB / 388.9 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001942/0.4072, allocations: 80.41 kB / 389 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.4073, allocations: 93.97 kB / 389.1 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004133/0.4115, allocations: 2.279 MB / 391.4 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/0.4247, allocations: 8.231 MB / 399.6 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.4276, allocations: 1.625 MB / 401.2 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001872/0.4295, allocations: 1.093 MB / 402.3 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002538/0.4298, allocations: 128.8 kB / 402.5 MB, free: 14.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.4298, allocations: 43.06 kB / 402.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.416e-06/0.4298, allocations: 0 / 402.5 MB, free: 14.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01388/0.4437, allocations: 6.453 MB / 409 MB, free: 7.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.4438, allocations: 68.66 kB / 409 MB, free: 7.547 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003915/0.4477, allocations: 2.149 MB / 411.2 MB, free: 5.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004452/0.4482, allocations: 53.22 kB / 411.2 MB, free: 5.297 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009767/0.4492, allocations: 1.104 MB / 412.3 MB, free: 4.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005788/0.4498, allocations: 460.2 kB / 412.8 MB, free: 3.734 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004526/0.4502, allocations: 242 kB / 413 MB, free: 3.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.4504, allocations: 357.9 kB / 413.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.4517, allocations: 0.7574 MB / 414.1 MB, free: 2.383 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001436/0.4532, allocations: 1.009 MB / 415.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00277/0.456, allocations: 1.866 MB / 417 MB, free: 15.37 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.456, allocations: 4 kB / 417 MB, free: 15.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005291/0.4613, allocations: 2.766 MB / 419.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.4613, allocations: 8 kB / 419.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/0.4614, allocations: 4 kB / 419.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002005/0.4634, allocations: 0.7914 MB / 420.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.4646, allocations: 272.9 kB / 420.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/0.4764, allocations: 9.601 MB / 430.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001824/0.4783, allocations: 87.89 kB / 430.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001731/0.4785, allocations: 55.98 kB / 430.6 MB, free: 1.594 MB / 334.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.001627/0.4801, allocations: 0.7428 MB / 431.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005762/0.4807, allocations: 193.6 kB / 431.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004691/0.4854, allocations: 2.498 MB / 434 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.982e-05/0.4855, allocations: 16 kB / 434 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.4855, allocations: 8.562 kB / 434 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.4855, allocations: 7.969 kB / 434 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009437/0.495, allocations: 4.942 MB / 439 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.495, allocations: 0 / 439 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.496, allocations: 218.3 kB / 439.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/0.4978, allocations: 0.6512 MB / 439.8 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.498, allocations: 39.73 kB / 439.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009195/0.5072, allocations: 8.724 MB / 448.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.5072, allocations: 6.656 kB / 448.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006468/0.5137, allocations: 3.524 MB / 452.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.515, allocations: 450.4 kB / 452.6 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003251/0.5153, allocations: 27.91 kB / 452.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.5163, allocations: 91.95 kB / 452.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.5166, allocations: 100.8 kB / 452.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.865e-05/0.5167, allocations: 39.98 kB / 452.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002206/0.519, allocations: 1.519 MB / 454.4 MB, free: 9.352 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.244e-06/0.519, allocations: 0 / 454.4 MB, free: 9.352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002282/0.5213, allocations: 0.5234 MB / 454.9 MB, free: 8.828 MB / 366.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.001213/0.5225, allocations: 462.3 kB / 455.3 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00611/0.5286, allocations: 2.859 MB / 458.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.5287, allocations: 0 / 458.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002673/0.5313, allocations: 1.608 MB / 459.8 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002693/0.5341, allocations: 462.5 kB / 460.2 MB, free: 3.578 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009177/0.5433, allocations: 5.239 MB / 465.5 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001659/0.545, allocations: 1.93 MB / 467.4 MB, free: 12.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007695/0.5458, allocations: 143.4 kB / 467.6 MB, free: 12.21 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5458, allocations: 3.938 kB / 467.6 MB, free: 12.2 MB / 382.1 MB Notification: Performance of Templates: time 0.07558/0.6214, allocations: 63.73 MB / 0.5188 GB, free: 12.52 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/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) Reference file matches