Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_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.001577/0.001577, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 226.6 MB / 244.3 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007413/0.0007413, allocations: 98.48 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002128/0.0002129, allocations: 11.94 kB / 356.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1965, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.00917/0.2057, allocations: 12.51 MB / 420 MB, free: 15.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007523/0.2133, allocations: 4.941 MB / 425 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001824/0.2151, allocations: 71.75 kB / 425 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.2172, allocations: 0.7885 MB / 425.8 MB, free: 9.457 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002861/0.22, allocations: 1.157 MB / 427 MB, free: 8.297 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001646/0.2217, allocations: 0.7276 MB / 427.7 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004138/0.2258, allocations: 4.393 MB / 432.1 MB, free: 3.164 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002273/0.2281, allocations: 2.301 MB / 434.4 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.23, allocations: 1.405 MB / 435.8 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.2321, allocations: 1.84 MB / 437.6 MB, free: 13.57 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003895/0.2325, allocations: 224 kB / 437.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001337/0.2339, allocations: 0.5737 MB / 438.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007981/0.2347, allocations: 0.9381 MB / 439.4 MB, free: 11.83 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000949/0.2356, allocations: 0.8121 MB / 440.2 MB, free: 11.01 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005444/0.2411, allocations: 5.988 MB / 446.2 MB, free: 5.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2411, allocations: 0 / 446.2 MB, free: 5.008 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2411, allocations: 0 / 446.2 MB, free: 5.008 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001175/0.2412, allocations: 4 kB / 446.2 MB, free: 5.004 MB / 314.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.009609/0.2509, allocations: 4.305 MB / 450.5 MB, free: 0.625 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.2509, allocations: 12.03 kB / 450.5 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004565/0.2555, allocations: 0.9238 MB / 451.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004644/0.2601, allocations: 2.601 MB / 454 MB, free: 13.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.2604, allocations: 250.7 kB / 454.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006194/0.261, allocations: 335.9 kB / 454.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007802/0.2688, allocations: 4.531 MB / 459.1 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.014e-05/0.2689, allocations: 8 kB / 459.1 MB, free: 7.844 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003009/0.2692, allocations: 140 kB / 459.3 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001612/0.2694, allocations: 158.6 kB / 459.4 MB, free: 7.551 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00647/0.2759, allocations: 3.915 MB / 463.3 MB, free: 3.629 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01952/0.2954, allocations: 14.23 MB / 477.6 MB, free: 5.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007078/0.3025, allocations: 6.994 MB / 484.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002704/0.3052, allocations: 1.696 MB / 486.3 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006653/0.3119, allocations: 4.506 MB / 490.8 MB, free: 6.953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/0.312, allocations: 55.88 kB / 490.8 MB, free: 6.891 MB / 362.7 MB Notification: Performance of pre-optimization done (n=165): time 2.895e-06/0.312, allocations: 0 / 490.8 MB, free: 6.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=185): time 0.01564/0.3276, allocations: 7.905 MB / 498.7 MB, free: 14.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.3277, allocations: 77.39 kB / 498.8 MB, free: 14.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003175/0.3309, allocations: 2.633 MB / 0.4897 GB, free: 12.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.331, allocations: 53.7 kB / 0.4897 GB, free: 12.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.3321, allocations: 1.63 MB / 0.4913 GB, free: 10.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004481/0.3326, allocations: 0.6238 MB / 0.4919 GB, free: 9.754 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.606e-05/0.3327, allocations: 36 kB / 0.492 GB, free: 9.719 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3328, allocations: 385.9 kB / 0.4923 GB, free: 9.336 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.3343, allocations: 0.9097 MB / 0.4932 GB, free: 8.426 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001687/0.336, allocations: 1.314 MB / 0.4945 GB, free: 6.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.3377, allocations: 1.134 MB / 0.4956 GB, free: 5.836 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.3377, allocations: 4 kB / 0.4956 GB, free: 5.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005157/0.3429, allocations: 3.084 MB / 0.4986 GB, free: 2.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3429, allocations: 16.25 kB / 0.4987 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.343, allocations: 8 kB / 0.4987 GB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.3444, allocations: 0.5594 MB / 0.4992 GB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/0.3461, allocations: 439.3 kB / 0.4996 GB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1701/0.5163, allocations: 6.936 MB / 0.5064 GB, free: 84.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/0.5181, allocations: 97.47 kB / 0.5065 GB, free: 84.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002285/0.5183, allocations: 73.56 kB / 0.5066 GB, free: 84.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(8,62.5%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00193/0.5202, allocations: 1.16 MB / 0.5077 GB, free: 84.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004405/0.5207, allocations: 255.3 kB / 0.5079 GB, free: 84.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004524/0.5252, allocations: 2.91 MB / 0.5108 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-05/0.5253, allocations: 19.78 kB / 0.5108 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.5253, allocations: 11.84 kB / 0.5108 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.5253, allocations: 9.984 kB / 0.5108 GB, free: 83.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008955/0.5343, allocations: 6.36 MB / 0.517 GB, free: 80.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.5343, allocations: 5.391 kB / 0.517 GB, free: 80.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.5355, allocations: 286 kB / 0.5173 GB, free: 80.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/0.5369, allocations: 0.6051 MB / 0.5179 GB, free: 80.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.537, allocations: 46.55 kB / 0.5179 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008218/0.5452, allocations: 10.47 MB / 0.5282 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5453, allocations: 0 / 0.5282 GB, free: 71.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00588/0.5512, allocations: 4.187 MB / 0.5323 GB, free: 67.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009886/0.5522, allocations: 0.5409 MB / 0.5328 GB, free: 67.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002838/0.5525, allocations: 44 kB / 0.5328 GB, free: 67.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.5535, allocations: 91.92 kB / 0.5329 GB, free: 66.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/0.5538, allocations: 135.7 kB / 0.5331 GB, free: 66.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.5539, allocations: 59.92 kB / 0.5331 GB, free: 66.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002064/0.556, allocations: 1.847 MB / 0.5349 GB, free: 64.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.556, allocations: 0 / 0.5349 GB, free: 64.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002011/0.558, allocations: 0.7054 MB / 0.5356 GB, free: 64.22 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009312/0.559, allocations: 448.6 kB / 0.536 GB, free: 63.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004084/0.5631, allocations: 2.852 MB / 0.5388 GB, free: 61.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5631, allocations: 0 / 0.5388 GB, free: 61.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/0.5655, allocations: 1.936 MB / 0.5407 GB, free: 59.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/0.568, allocations: 0.5697 MB / 0.5413 GB, free: 58.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009265/0.5773, allocations: 8.424 MB / 0.5495 GB, free: 50.05 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001585/0.5789, allocations: 2.575 MB / 0.552 GB, free: 47.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006403/0.5795, allocations: 187.4 kB / 0.5522 GB, free: 47.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.452e-06/0.5795, allocations: 0 / 0.5522 GB, free: 47.27 MB / 378.7 MB Notification: Performance of Templates: time 0.09139/0.6709, allocations: 100.5 MB / 0.6503 GB, free: 10.84 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches