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_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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 110.9 kB / 17.06 MB, free: 5.984 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.001565/0.001565, allocations: 196 kB / 18 MB, free: 5.074 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.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009829/0.0009829, allocations: 51.92 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2463, allocations: 49.43 MB / 400.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01453/0.2608, allocations: 13.62 MB / 414.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009013/0.2699, allocations: 4.973 MB / 419.4 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001965/0.2719, allocations: 75.75 kB / 419.4 MB, free: 6.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002487/0.2744, allocations: 1.033 MB / 420.5 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003702/0.2782, allocations: 1.402 MB / 421.9 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002057/0.2802, allocations: 0.9713 MB / 422.8 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005034/0.2853, allocations: 4.306 MB / 427.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00368/0.289, allocations: 3.34 MB / 430.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002736/0.2917, allocations: 2.002 MB / 432.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002965/0.2947, allocations: 2.281 MB / 434.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007071/0.2954, allocations: 0.5352 MB / 435.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.2971, allocations: 0.9213 MB / 436.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001093/0.2982, allocations: 1.367 MB / 437.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00281/0.301, allocations: 2.349 MB / 439.9 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007531/0.3086, allocations: 7.385 MB / 447.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3086, allocations: 0 / 447.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.277e-06/0.3086, allocations: 0 / 447.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.3088, allocations: 7.938 kB / 447.3 MB, free: 10.06 MB / 366.1 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.01291/0.3217, allocations: 5.085 MB / 452.4 MB, free: 4.895 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.3218, allocations: 12.03 kB / 452.4 MB, free: 4.883 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004447/0.3262, allocations: 0.896 MB / 453.3 MB, free: 3.984 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004663/0.3309, allocations: 2.797 MB / 456.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.3311, allocations: 254.6 kB / 456.4 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005236/0.3316, allocations: 335.9 kB / 456.7 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007469/0.3391, allocations: 4.543 MB / 461.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.262e-05/0.3392, allocations: 7.953 kB / 461.3 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003115/0.3395, allocations: 136 kB / 461.4 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000153/0.3397, allocations: 154.7 kB / 461.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006479/0.3462, allocations: 3.918 MB / 465.5 MB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01995/0.3661, allocations: 14.03 MB / 479.5 MB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007169/0.3733, allocations: 6.983 MB / 486.5 MB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002809/0.3762, allocations: 1.72 MB / 488.2 MB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006708/0.3829, allocations: 4.241 MB / 492.4 MB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.3829, allocations: 51.88 kB / 492.5 MB, free: 11.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 3.387e-06/0.383, allocations: 0 / 492.5 MB, free: 11.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01615/0.3991, allocations: 7.83 MB / 0.4886 GB, free: 3.547 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.3992, allocations: 69.41 kB / 0.4887 GB, free: 3.465 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003482/0.4027, allocations: 2.624 MB / 0.4912 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/0.4028, allocations: 61.7 kB / 0.4913 GB, free: 0.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.404, allocations: 1.65 MB / 0.4929 GB, free: 15.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005127/0.4045, allocations: 0.6584 MB / 0.4935 GB, free: 14.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005329/0.4051, allocations: 331.5 kB / 0.4938 GB, free: 14.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4052, allocations: 305.1 kB / 0.4941 GB, free: 13.79 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/0.4067, allocations: 0.9174 MB / 0.495 GB, free: 12.87 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/0.4085, allocations: 1.306 MB / 0.4963 GB, free: 11.41 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/0.4119, allocations: 2.352 MB / 0.4986 GB, free: 8.914 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.412, allocations: 4 kB / 0.4986 GB, free: 8.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005365/0.4173, allocations: 3.078 MB / 0.5016 GB, free: 5.816 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.4174, allocations: 12 kB / 0.5016 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.074e-05/0.4174, allocations: 11.98 kB / 0.5016 GB, free: 5.793 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.4189, allocations: 0.5479 MB / 0.5022 GB, free: 5.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001721/0.4206, allocations: 439.3 kB / 0.5026 GB, free: 4.809 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009219/0.4298, allocations: 7.6 MB / 0.51 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.4316, allocations: 79.94 kB / 0.5101 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.4318, allocations: 75.98 kB / 0.5102 GB, free: 12.78 MB / 446.1 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.001962/0.4338, allocations: 1.169 MB / 0.5113 GB, free: 11.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004586/0.4342, allocations: 266.3 kB / 0.5116 GB, free: 11.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005225/0.4395, allocations: 2.886 MB / 0.5144 GB, free: 8.426 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.907e-05/0.4395, allocations: 23.98 kB / 0.5144 GB, free: 8.402 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.4395, allocations: 8 kB / 0.5144 GB, free: 8.395 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/0.4395, allocations: 11.91 kB / 0.5144 GB, free: 8.383 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009835/0.4494, allocations: 6.333 MB / 0.5206 GB, free: 1.957 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.4494, allocations: 4.031 kB / 0.5206 GB, free: 1.953 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.4507, allocations: 275.6 kB / 0.5209 GB, free: 1.684 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001618/0.4523, allocations: 0.6199 MB / 0.5215 GB, free: 1.055 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/0.4525, allocations: 43.97 kB / 0.5215 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01165/0.4641, allocations: 11.47 MB / 0.5327 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.4642, allocations: 0 / 0.5327 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007049/0.4712, allocations: 4.165 MB / 0.5368 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.4724, allocations: 0.55 MB / 0.5373 GB, free: 212 kB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000306/0.4727, allocations: 43.94 kB / 0.5374 GB, free: 168 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.4738, allocations: 83.94 kB / 0.5374 GB, free: 84 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2223/0.6962, allocations: 131.6 kB / 0.5376 GB, free: 128.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003439/0.6965, allocations: 52.78 kB / 0.5376 GB, free: 128.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003245/0.6998, allocations: 1.841 MB / 0.5394 GB, free: 128.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6998, allocations: 4.625 kB / 0.5394 GB, free: 128.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002503/0.7023, allocations: 0.6912 MB / 0.5401 GB, free: 128.6 MB / 462.1 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.0009943/0.7033, allocations: 446.3 kB / 0.5405 GB, free: 128.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004214/0.7075, allocations: 2.842 MB / 0.5433 GB, free: 128 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7076, allocations: 0 / 0.5433 GB, free: 128 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.71, allocations: 1.934 MB / 0.5452 GB, free: 126.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.7124, allocations: 0.5945 MB / 0.5458 GB, free: 126.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009002/0.7214, allocations: 7.158 MB / 0.5528 GB, free: 123.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/0.7231, allocations: 2.627 MB / 0.5553 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001395/0.7245, allocations: 0.4926 MB / 0.5558 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004277/0.725, allocations: 171 kB / 0.556 GB, free: 121.3 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.725, allocations: 3.938 kB / 0.556 GB, free: 121.3 MB / 462.1 MB Notification: Performance of Templates: time 0.04706/0.772, allocations: 35.71 MB / 0.5908 GB, free: 86.91 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches