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.0009973/0.0009972, allocations: 91.22 kB / 16.65 MB, free: 6.59 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.001213/0.001213, allocations: 184.7 kB / 17.56 MB, free: 6.199 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.357/1.357, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000286/0.000286, allocations: 8 kB / 301.4 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1013, allocations: 50.42 MB / 351.9 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Steinmetz): time 0.01358/0.1149, allocations: 12.81 MB / 364.7 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01002/0.1249, allocations: 4.318 MB / 369 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00316/0.1282, allocations: 71.75 kB / 369.1 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.1312, allocations: 0.8784 MB / 369.9 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004525/0.1357, allocations: 1.185 MB / 371.1 MB, free: 328 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1798/0.3155, allocations: 0.8016 MB / 371.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005845/0.3214, allocations: 4.307 MB / 376.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003341/0.3247, allocations: 2.65 MB / 378.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.3272, allocations: 1.322 MB / 380.2 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002878/0.3301, allocations: 1.683 MB / 381.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006498/0.3308, allocations: 209.7 kB / 382.1 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001917/0.3327, allocations: 417.9 kB / 382.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000821/0.3335, allocations: 0.7611 MB / 383.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002202/0.3357, allocations: 1.766 MB / 385 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005886/0.3416, allocations: 6.286 MB / 391.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3417, allocations: 0 / 391.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3417, allocations: 0 / 391.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001236/0.3418, allocations: 0 / 391.3 MB, free: 5.375 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.009681/0.3515, allocations: 3.71 MB / 395 MB, free: 2.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.3516, allocations: 10 kB / 395 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004433/0.356, allocations: 0.8212 MB / 395.9 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004572/0.3606, allocations: 2.324 MB / 398.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.3608, allocations: 240.5 kB / 398.4 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004808/0.3613, allocations: 328.8 kB / 398.7 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007465/0.3687, allocations: 4.266 MB / 403 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.481e-05/0.3688, allocations: 4 kB / 403 MB, free: 13.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003127/0.3691, allocations: 138.5 kB / 403.1 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001449/0.3693, allocations: 143 kB / 403.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006461/0.3758, allocations: 3.612 MB / 406.9 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02014/0.3959, allocations: 13.94 MB / 420.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006488/0.4024, allocations: 6.565 MB / 427.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002327/0.4048, allocations: 1.404 MB / 428.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005806/0.4106, allocations: 3.646 MB / 432.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.4107, allocations: 47.88 kB / 432.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 3.637e-06/0.4107, allocations: 0 / 432.5 MB, free: 14.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.0112/0.4219, allocations: 5.913 MB / 438.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.4219, allocations: 72.59 kB / 438.5 MB, free: 8.344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002436/0.4244, allocations: 1.78 MB / 440.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.699e-05/0.4245, allocations: 53.7 kB / 440.3 MB, free: 6.504 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009277/0.4254, allocations: 1.445 MB / 441.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003335/0.4258, allocations: 478.2 kB / 442.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.426, allocations: 149.6 kB / 442.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.689e-05/0.4261, allocations: 301.1 kB / 442.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/0.4272, allocations: 0.6871 MB / 443.3 MB, free: 3.453 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.4286, allocations: 1.199 MB / 444.5 MB, free: 2.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.4312, allocations: 2.005 MB / 446.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.4312, allocations: 4 kB / 446.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003939/0.4352, allocations: 2.55 MB / 449.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.4352, allocations: 12 kB / 449.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/0.4352, allocations: 16 kB / 449.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009153/0.4361, allocations: 356.4 kB / 449.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.4375, allocations: 375.4 kB / 449.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006948/0.4445, allocations: 7.708 MB / 457.6 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.4458, allocations: 84.05 kB / 457.6 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.4459, allocations: 72 kB / 457.7 MB, free: 4.074 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.001751/0.4477, allocations: 0.997 MB / 458.7 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002782/0.448, allocations: 193.8 kB / 458.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003878/0.4519, allocations: 2.305 MB / 461.2 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4519, allocations: 15.94 kB / 461.2 MB, free: 492 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.4519, allocations: 11.94 kB / 461.2 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.4519, allocations: 3.984 kB / 461.2 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007452/0.4594, allocations: 5.082 MB / 466.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.4594, allocations: 4 kB / 466.3 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007854/0.4602, allocations: 175.8 kB / 466.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.4616, allocations: 0.5279 MB / 467 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.056e-05/0.4617, allocations: 39.98 kB / 467.1 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01161/0.4733, allocations: 12.1 MB / 479.2 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4734, allocations: 4.031 kB / 479.2 MB, free: 13.62 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005002/0.4784, allocations: 3.228 MB / 482.4 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008304/0.4792, allocations: 430.5 kB / 482.8 MB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002308/0.4795, allocations: 32 kB / 482.8 MB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008931/0.4804, allocations: 67.94 kB / 482.9 MB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/0.4806, allocations: 105.1 kB / 483 MB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-05/0.4807, allocations: 43.98 kB / 483.1 MB, free: 9.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001788/0.4825, allocations: 1.215 MB / 484.3 MB, free: 8.418 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4825, allocations: 0 / 484.3 MB, free: 8.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002079/0.4846, allocations: 0.5781 MB / 484.8 MB, free: 7.84 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.0003038/0.4849, allocations: 182.7 kB / 485 MB, free: 7.652 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003387/0.4883, allocations: 2.361 MB / 487.4 MB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4883, allocations: 0 / 487.4 MB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002436/0.4908, allocations: 1.754 MB / 489.1 MB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.4934, allocations: 0.5069 MB / 489.6 MB, free: 2.891 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.5037, allocations: 7.383 MB / 497 MB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002014/0.5058, allocations: 2.303 MB / 499.3 MB, free: 9.129 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00145/0.5072, allocations: 401 kB / 499.7 MB, free: 8.734 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003159/0.5076, allocations: 127.4 kB / 499.8 MB, free: 8.609 MB / 414.1 MB Notification: Performance of SimCode: time 2.174e-06/0.5076, allocations: 0 / 499.8 MB, free: 8.609 MB / 414.1 MB Notification: Performance of Templates: time 0.0482/0.5558, allocations: 28.24 MB / 0.5157 GB, free: 12.71 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