Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|cRun.v|cStart.v|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 106.9 kB / 16.51 MB, free: 6.707 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.001074/0.001074, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.288/1.288, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009297/0.0009297, allocations: 45.75 kB / 300 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07911/0.08005, allocations: 49.45 MB / 349.4 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01378/0.09386, allocations: 13.48 MB / 362.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007601/0.1015, allocations: 4.369 MB / 367.3 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001853/0.1034, allocations: 75.75 kB / 367.3 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002674/0.1061, allocations: 0.8667 MB / 368.2 MB, free: 1.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003437/0.1096, allocations: 1.2 MB / 369.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1546/0.2642, allocations: 0.8177 MB / 370.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005439/0.2696, allocations: 4.301 MB / 374.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003002/0.2727, allocations: 2.68 MB / 377.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002161/0.2748, allocations: 1.518 MB / 378.7 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002247/0.2771, allocations: 1.917 MB / 380.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000587/0.2777, allocations: 304.1 kB / 380.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001304/0.279, allocations: 0.499 MB / 381.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007336/0.2798, allocations: 0.8927 MB / 382.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001982/0.2817, allocations: 1.899 MB / 384.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004792/0.2865, allocations: 6.495 MB / 390.7 MB, free: 4.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2866, allocations: 0 / 390.7 MB, free: 4.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2866, allocations: 0 / 390.7 MB, free: 4.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.697e-05/0.2867, allocations: 0 / 390.7 MB, free: 4.965 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.00954/0.2962, allocations: 4.395 MB / 395.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.2963, allocations: 9.406 kB / 395.1 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003983/0.3003, allocations: 0.8155 MB / 395.9 MB, free: 1.629 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003562/0.3038, allocations: 2.325 MB / 398.3 MB, free: 4 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004033/0.3043, allocations: 262.9 kB / 398.5 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004887/0.3048, allocations: 331.8 kB / 398.8 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008147/0.3129, allocations: 4.267 MB / 403.1 MB, free: 12.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.922e-05/0.313, allocations: 11.89 kB / 403.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.3133, allocations: 135.1 kB / 403.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.3135, allocations: 146.4 kB / 403.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005945/0.3194, allocations: 3.601 MB / 407 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01916/0.3386, allocations: 13.86 MB / 420.9 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005867/0.3445, allocations: 6.555 MB / 427.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002122/0.3467, allocations: 1.397 MB / 428.8 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005517/0.3522, allocations: 3.64 MB / 432.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.3522, allocations: 47.88 kB / 432.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 2.565e-06/0.3522, allocations: 0 / 432.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01093/0.3632, allocations: 5.873 MB / 438.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.3633, allocations: 72.59 kB / 438.4 MB, free: 7.625 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002484/0.3657, allocations: 1.784 MB / 440.2 MB, free: 5.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.3659, allocations: 57.55 kB / 440.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/0.3668, allocations: 1.437 MB / 441.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003958/0.3672, allocations: 478.5 kB / 442.2 MB, free: 3.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004511/0.3677, allocations: 319.2 kB / 442.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3678, allocations: 301.1 kB / 442.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.3689, allocations: 0.6822 MB / 443.5 MB, free: 2.574 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/0.3703, allocations: 1.201 MB / 444.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002604/0.3729, allocations: 1.991 MB / 446.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.3729, allocations: 4 kB / 446.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004213/0.3771, allocations: 2.543 MB / 449.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.004e-05/0.3772, allocations: 14.84 kB / 449.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.572e-05/0.3772, allocations: 20 kB / 449.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.3783, allocations: 360 kB / 449.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.3797, allocations: 375.4 kB / 450 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007222/0.3869, allocations: 7.704 MB / 457.7 MB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/0.3887, allocations: 79.86 kB / 457.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/0.3888, allocations: 72 kB / 457.8 MB, free: 3.215 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002062/0.3909, allocations: 1.009 MB / 458.8 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004067/0.3913, allocations: 193.7 kB / 459 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004077/0.3954, allocations: 2.289 MB / 461.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.3954, allocations: 15.98 kB / 461.3 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.3955, allocations: 8 kB / 461.3 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.3955, allocations: 7.984 kB / 461.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008022/0.4035, allocations: 5.073 MB / 466.4 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/0.4035, allocations: 4 kB / 466.4 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007586/0.4043, allocations: 175.7 kB / 466.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.4057, allocations: 0.5359 MB / 467.1 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.096e-05/0.4058, allocations: 35.98 kB / 467.2 MB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/0.417, allocations: 12.09 MB / 479.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.4171, allocations: 3.938 kB / 479.3 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005106/0.4222, allocations: 3.221 MB / 482.5 MB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.4233, allocations: 426.6 kB / 482.9 MB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002438/0.4236, allocations: 36 kB / 482.9 MB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008352/0.4244, allocations: 59.95 kB / 483 MB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/0.4247, allocations: 117.1 kB / 483.1 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.07e-05/0.4248, allocations: 35.98 kB / 483.1 MB, free: 8.805 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001891/0.4267, allocations: 1.219 MB / 484.4 MB, free: 7.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4267, allocations: 0 / 484.4 MB, free: 7.594 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002288/0.429, allocations: 0.5781 MB / 484.9 MB, free: 7.016 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003741/0.4294, allocations: 171 kB / 485.1 MB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003492/0.4329, allocations: 2.358 MB / 487.5 MB, free: 4.406 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4329, allocations: 0 / 487.5 MB, free: 4.406 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.4353, allocations: 1.742 MB / 489.2 MB, free: 2.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.4378, allocations: 0.5085 MB / 489.7 MB, free: 2.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.4495, allocations: 7.215 MB / 496.9 MB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/0.4516, allocations: 2.307 MB / 499.2 MB, free: 8.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001539/0.4532, allocations: 401 kB / 499.6 MB, free: 8.105 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/0.4535, allocations: 123.4 kB / 499.7 MB, free: 7.984 MB / 414.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4535, allocations: 0 / 499.7 MB, free: 7.984 MB / 414.1 MB Notification: Performance of Templates: time 0.04559/0.4991, allocations: 28.59 MB / 0.5159 GB, free: 11.73 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches