Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.airGap.V_mrr.im|aimc.airGap.V_mrr.re|aimc.airGap.V_msr.im|aimc.airGap.V_msr.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.core.Phi.im|aimc.stator.core.Phi.re|aimc.stator.port_p.V_m.im|aimc.stator.port_p.V_m.re|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009771/0.000977, allocations: 113.7 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009033/0.0009033, allocations: 47.92 kB / 356.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1833, allocations: 50.44 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01104/0.1944, allocations: 14.08 MB / 421.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006367/0.2008, allocations: 5.31 MB / 426.5 MB, free: 8.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.2019, allocations: 79.69 kB / 426.5 MB, free: 8.262 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00175/0.2037, allocations: 0.925 MB / 427.5 MB, free: 7.332 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002285/0.206, allocations: 1.271 MB / 428.7 MB, free: 6.055 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001489/0.2075, allocations: 0.9491 MB / 429.7 MB, free: 5.113 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00319/0.2107, allocations: 4.767 MB / 434.4 MB, free: 336 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002761/0.2134, allocations: 2.777 MB / 437.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001734/0.2152, allocations: 1.627 MB / 438.8 MB, free: 11.85 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00224/0.2174, allocations: 2.156 MB / 441 MB, free: 9.688 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004662/0.2179, allocations: 316 kB / 441.3 MB, free: 9.379 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.2193, allocations: 0.722 MB / 442 MB, free: 8.656 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008074/0.2201, allocations: 1.086 MB / 443.1 MB, free: 7.566 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001855/0.2219, allocations: 2.103 MB / 445.2 MB, free: 5.453 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006003/0.228, allocations: 7.17 MB / 452.4 MB, free: 14.26 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.228, allocations: 0 / 452.4 MB, free: 14.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.228, allocations: 7.938 kB / 452.4 MB, free: 14.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001103/0.2281, allocations: 0 / 452.4 MB, free: 14.25 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.009863/0.238, allocations: 4.996 MB / 457.4 MB, free: 9.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.238, allocations: 12.02 kB / 457.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004078/0.2421, allocations: 0.913 MB / 458.3 MB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004089/0.2462, allocations: 2.682 MB / 461 MB, free: 5.492 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.2464, allocations: 254.7 kB / 461.2 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004423/0.2468, allocations: 335.9 kB / 461.6 MB, free: 4.914 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006641/0.2535, allocations: 4.551 MB / 466.1 MB, free: 324 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.076e-05/0.2536, allocations: 4 kB / 466.1 MB, free: 320 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/0.2539, allocations: 132 kB / 466.3 MB, free: 188 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001356/0.254, allocations: 154.7 kB / 466.4 MB, free: 32 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006055/0.2601, allocations: 3.918 MB / 470.3 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01883/0.2789, allocations: 14.18 MB / 484.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006808/0.2857, allocations: 6.987 MB / 491.5 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002563/0.2883, allocations: 1.685 MB / 493.2 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006537/0.2949, allocations: 4.494 MB / 497.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.2949, allocations: 51.88 kB / 497.7 MB, free: 15.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=165): time 4.589e-06/0.2949, allocations: 0 / 497.7 MB, free: 15.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=185): time 0.01475/0.3097, allocations: 7.771 MB / 0.4936 GB, free: 7.551 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.3097, allocations: 73.41 kB / 0.4937 GB, free: 7.469 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00304/0.3128, allocations: 2.645 MB / 0.4963 GB, free: 4.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.996e-05/0.3129, allocations: 57.7 kB / 0.4964 GB, free: 4.738 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001108/0.314, allocations: 1.623 MB / 0.4979 GB, free: 3.094 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004793/0.3145, allocations: 0.6315 MB / 0.4986 GB, free: 2.453 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005502/0.3151, allocations: 335.3 kB / 0.4989 GB, free: 2.117 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.3152, allocations: 305.1 kB / 0.4992 GB, free: 1.816 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.3166, allocations: 0.9096 MB / 0.5001 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1616/0.4783, allocations: 1.3 MB / 0.5013 GB, free: 88.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00381/0.4821, allocations: 2.355 MB / 0.5036 GB, free: 87.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.207e-06/0.4821, allocations: 3.625 kB / 0.5036 GB, free: 87.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005345/0.4875, allocations: 3.074 MB / 0.5066 GB, free: 86.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.4875, allocations: 10.59 kB / 0.5066 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.4875, allocations: 11.84 kB / 0.5067 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001419/0.489, allocations: 0.5487 MB / 0.5072 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/0.4906, allocations: 428.6 kB / 0.5076 GB, free: 86.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007673/0.4983, allocations: 6.988 MB / 0.5144 GB, free: 81.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.4997, allocations: 79.25 kB / 0.5145 GB, free: 81.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/0.4999, allocations: 74.78 kB / 0.5146 GB, free: 81.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * 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%), (7,34,75.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001471/0.5013, allocations: 1.171 MB / 0.5157 GB, free: 80.8 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003429/0.5017, allocations: 253.4 kB / 0.516 GB, free: 80.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004446/0.5061, allocations: 2.897 MB / 0.5188 GB, free: 79.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-05/0.5062, allocations: 19.53 kB / 0.5188 GB, free: 79.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.5062, allocations: 7.812 kB / 0.5188 GB, free: 79.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.5062, allocations: 11.34 kB / 0.5188 GB, free: 79.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007992/0.5142, allocations: 6.343 MB / 0.525 GB, free: 75.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/0.5142, allocations: 4 kB / 0.525 GB, free: 75.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001155/0.5154, allocations: 283.7 kB / 0.5253 GB, free: 75.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001303/0.5167, allocations: 0.6057 MB / 0.5259 GB, free: 74.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.5168, allocations: 55.91 kB / 0.5259 GB, free: 74.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008192/0.525, allocations: 10.48 MB / 0.5362 GB, free: 63.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5251, allocations: 7.328 kB / 0.5362 GB, free: 63.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03519/0.5602, allocations: 29.16 MB / 0.5647 GB, free: 33.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008476/0.5611, allocations: 0.5485 MB / 0.5652 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002446/0.5614, allocations: 39.38 kB / 0.5652 GB, free: 33.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.5624, allocations: 91.83 kB / 0.5653 GB, free: 33.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.5628, allocations: 141.7 kB / 0.5654 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.5629, allocations: 51.98 kB / 0.5655 GB, free: 32.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002026/0.5649, allocations: 1.859 MB / 0.5673 GB, free: 31.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5649, allocations: 4 kB / 0.5673 GB, free: 31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002788/0.5677, allocations: 0.9552 MB / 0.5682 GB, free: 30.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/0.5688, allocations: 446 kB / 0.5687 GB, free: 29.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004261/0.573, allocations: 2.831 MB / 0.5714 GB, free: 26.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5731, allocations: 0 / 0.5714 GB, free: 26.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002442/0.5755, allocations: 1.933 MB / 0.5733 GB, free: 24.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/0.578, allocations: 0.5673 MB / 0.5739 GB, free: 24.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/0.5896, allocations: 10.57 MB / 0.5842 GB, free: 13.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001778/0.5914, allocations: 2.695 MB / 0.5868 GB, free: 11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001707/0.5932, allocations: 0.5164 MB / 0.5873 GB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000474/0.5936, allocations: 171.4 kB / 0.5875 GB, free: 10.31 MB / 378.7 MB Notification: Performance of SimCode: time 7.62e-07/0.5936, allocations: 0 / 0.5875 GB, free: 10.31 MB / 378.7 MB Notification: Performance of Templates: time 0.06579/0.6594, allocations: 43.52 MB / 0.63 GB, free: 15.09 MB / 426.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches