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.001689/0.001689, allocations: 108.2 kB / 17.16 MB, free: 6.082 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.00199/0.00199, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.135/2.135, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002084, allocations: 45.31 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1858, allocations: 49.45 MB / 350.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.03017/0.216, allocations: 13.47 MB / 363.5 MB, free: 7.301 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01885/0.235, allocations: 4.93 MB / 368.5 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005198/0.2403, allocations: 75.69 kB / 368.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007139/0.2475, allocations: 0.894 MB / 369.4 MB, free: 1.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01076/0.2584, allocations: 1.289 MB / 370.7 MB, free: 92 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3749/0.6334, allocations: 0.8732 MB / 371.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.6471, allocations: 4.611 MB / 376.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007781/0.6549, allocations: 2.783 MB / 379 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005809/0.6608, allocations: 1.608 MB / 380.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007846/0.6687, allocations: 2.158 MB / 382.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003277/0.6721, allocations: 316.1 kB / 383.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006028/0.6782, allocations: 0.6918 MB / 383.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004087/0.6823, allocations: 1.08 MB / 384.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01063/0.693, allocations: 2.103 MB / 386.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01412/0.7072, allocations: 6.147 MB / 393.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.366e-05/0.7073, allocations: 0 / 393.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.7073, allocations: 3.188 kB / 393.1 MB, free: 4.086 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003671/0.7077, allocations: 0 / 393.1 MB, free: 4.086 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.02837/0.7361, allocations: 4.976 MB / 398.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.227e-05/0.7362, allocations: 9.406 kB / 398.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01003/0.7463, allocations: 0.8787 MB / 399 MB, free: 328 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01174/0.7581, allocations: 2.67 MB / 401.6 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005474/0.7587, allocations: 249.3 kB / 401.9 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002422/0.7612, allocations: 345.8 kB / 402.2 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02335/0.7846, allocations: 4.546 MB / 406.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000399/0.785, allocations: 3.375 kB / 406.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002333/0.7874, allocations: 140 kB / 406.9 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003609/0.7878, allocations: 150.7 kB / 407 MB, free: 9.016 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/0.8062, allocations: 3.918 MB / 411 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05351/0.8598, allocations: 14.16 MB / 425.1 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01469/0.8746, allocations: 6.974 MB / 432.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006351/0.881, allocations: 1.688 MB / 433.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01731/0.8984, allocations: 4.247 MB / 438 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.814e-05/0.8985, allocations: 55.81 kB / 438.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 7.974e-06/0.8985, allocations: 0 / 438.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.03479/0.9333, allocations: 7.767 MB / 445.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.158e-05/0.9335, allocations: 69.41 kB / 445.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008588/0.9421, allocations: 2.62 MB / 448.5 MB, free: 14.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006013/0.9428, allocations: 57.7 kB / 448.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002465/0.9452, allocations: 1.625 MB / 450.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001387/0.9467, allocations: 0.6201 MB / 450.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001591/0.9483, allocations: 335.2 kB / 451.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.9485, allocations: 305.1 kB / 451.5 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003276/0.9518, allocations: 0.9211 MB / 452.4 MB, free: 10.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003986/0.9558, allocations: 1.306 MB / 453.7 MB, free: 9.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006154/0.962, allocations: 2.347 MB / 456 MB, free: 6.531 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-05/0.9621, allocations: 4 kB / 456.1 MB, free: 6.527 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.009885/0.972, allocations: 3.073 MB / 459.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/0.9721, allocations: 14.34 kB / 459.1 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.349e-05/0.9721, allocations: 8 kB / 459.1 MB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/0.9745, allocations: 0.5519 MB / 459.7 MB, free: 2.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00293/0.9775, allocations: 427.3 kB / 460.1 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/0.9947, allocations: 6.97 MB / 467.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004364/0.9991, allocations: 87.8 kB / 467.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008507/1, allocations: 88.03 kB / 467.3 MB, free: 11.04 MB / 382.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.005014/1.005, allocations: 1.16 MB / 468.4 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/1.007, allocations: 248.9 kB / 468.7 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0118/1.019, allocations: 2.891 MB / 471.6 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.401e-05/1.019, allocations: 23.98 kB / 471.6 MB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.193e-05/1.019, allocations: 8 kB / 471.6 MB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.189e-05/1.019, allocations: 7.969 kB / 471.6 MB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02436/1.043, allocations: 6.329 MB / 477.9 MB, free: 300 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-05/1.043, allocations: 0 / 477.9 MB, free: 300 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002704/1.046, allocations: 283.7 kB / 478.2 MB, free: 16 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003535/1.05, allocations: 0.6167 MB / 478.8 MB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004216/1.05, allocations: 47.03 kB / 478.9 MB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02137/1.071, allocations: 10.5 MB / 489.4 MB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/1.071, allocations: 4.031 kB / 489.4 MB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01433/1.086, allocations: 4.15 MB / 493.5 MB, free: 136 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002742/1.089, allocations: 0.5408 MB / 494 MB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/1.09, allocations: 43.94 kB / 494.1 MB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002932/1.093, allocations: 75.94 kB / 494.2 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007845/1.094, allocations: 145.7 kB / 494.3 MB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003716/1.094, allocations: 51.98 kB / 494.4 MB, free: 15.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.006454/1.1, allocations: 1.842 MB / 496.2 MB, free: 13.4 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.533e-06/1.101, allocations: 0 / 496.2 MB, free: 13.4 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006687/1.107, allocations: 0.6913 MB / 496.9 MB, free: 12.71 MB / 414.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.002407/1.11, allocations: 462.9 kB / 497.3 MB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009753/1.119, allocations: 2.83 MB / 0.4885 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-05/1.12, allocations: 0 / 0.4885 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006153/1.126, allocations: 1.931 MB / 0.4903 GB, free: 7.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006578/1.132, allocations: 0.55 MB / 0.4909 GB, free: 7.02 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02642/1.159, allocations: 8.631 MB / 0.4993 GB, free: 14.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005678/1.165, allocations: 2.57 MB / 0.5018 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001549/1.166, allocations: 183.4 kB / 0.502 GB, free: 11.59 MB / 430.1 MB Notification: Performance of SimCode: time 1.542e-06/1.166, allocations: 0 / 0.502 GB, free: 11.59 MB / 430.1 MB Notification: Performance of Templates: time 0.4967/1.663, allocations: 100.2 MB / 0.5998 GB, free: 90.75 MB / 446.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/jenkins1/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/jenkins1/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