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.0008019/0.000802, allocations: 97.19 kB / 17.31 MB, free: 5.941 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.0008355/0.0008355, allocations: 178.1 kB / 18.21 MB, free: 5.418 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.11/1.11, allocations: 223.3 MB / 242.3 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002205/0.0002206, allocations: 11.92 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07251/0.07274, allocations: 50.4 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01095/0.08373, allocations: 12.82 MB / 365.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007199/0.09097, allocations: 4.868 MB / 370.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008417/0.09184, allocations: 71.69 kB / 370.3 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001692/0.09354, allocations: 0.9018 MB / 371.2 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1421/0.2356, allocations: 1.253 MB / 372.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002405/0.238, allocations: 0.8869 MB / 373.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005659/0.2437, allocations: 4.605 MB / 377.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002844/0.2466, allocations: 2.757 MB / 380.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001978/0.2486, allocations: 1.407 MB / 382.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.2506, allocations: 1.904 MB / 384 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003912/0.251, allocations: 224.9 kB / 384.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.2523, allocations: 0.6035 MB / 384.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007296/0.253, allocations: 0.9533 MB / 385.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001615/0.2547, allocations: 1.957 MB / 387.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004237/0.2589, allocations: 5.98 MB / 393.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2589, allocations: 0 / 393.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2589, allocations: 1.375 kB / 393.7 MB, free: 4.398 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.311e-05/0.259, allocations: 0 / 393.7 MB, free: 4.398 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.008095/0.2671, allocations: 4.224 MB / 397.9 MB, free: 1.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2672, allocations: 12.44 kB / 397.9 MB, free: 1.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00368/0.2709, allocations: 0.8842 MB / 398.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003411/0.2743, allocations: 2.669 MB / 401.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.2744, allocations: 247 kB / 401.7 MB, free: 15.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004547/0.2749, allocations: 345.2 kB / 402.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00672/0.2816, allocations: 4.56 MB / 406.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.713e-05/0.2817, allocations: 0 / 406.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002884/0.282, allocations: 137.7 kB / 406.8 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.2821, allocations: 150.7 kB / 406.9 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005853/0.288, allocations: 3.942 MB / 410.8 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0182/0.3062, allocations: 14.25 MB / 425.1 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006645/0.3129, allocations: 6.988 MB / 432.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/0.3154, allocations: 1.7 MB / 433.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005813/0.3212, allocations: 4.272 MB / 438.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.3213, allocations: 51.88 kB / 438.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 2.825e-06/0.3213, allocations: 0 / 438.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01421/0.3355, allocations: 7.865 MB / 446 MB, free: 1.789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.3355, allocations: 73.41 kB / 446 MB, free: 1.707 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003185/0.3387, allocations: 2.623 MB / 448.7 MB, free: 15.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.3389, allocations: 57.69 kB / 448.7 MB, free: 15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001038/0.3399, allocations: 1.621 MB / 450.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004346/0.3403, allocations: 0.619 MB / 451 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.3406, allocations: 153.6 kB / 451.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.15e-05/0.3406, allocations: 305.1 kB / 451.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001466/0.3421, allocations: 0.9214 MB / 452.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.3438, allocations: 1.321 MB / 453.7 MB, free: 9.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003277/0.3471, allocations: 2.382 MB / 456 MB, free: 7.363 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.3471, allocations: 4 kB / 456 MB, free: 7.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004896/0.352, allocations: 3.092 MB / 459.1 MB, free: 4.254 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.352, allocations: 8 kB / 459.1 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.3521, allocations: 12 kB / 459.1 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/0.3534, allocations: 0.5519 MB / 459.7 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.3549, allocations: 439.3 kB / 460.1 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007974/0.3629, allocations: 6.977 MB / 467.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.3641, allocations: 99.94 kB / 467.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.3643, allocations: 75.98 kB / 467.3 MB, free: 11.84 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.001621/0.3659, allocations: 1.157 MB / 468.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000336/0.3663, allocations: 256.9 kB / 468.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004688/0.3709, allocations: 2.909 MB / 471.6 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.382e-05/0.371, allocations: 20 kB / 471.6 MB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.371, allocations: 8 kB / 471.6 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.371, allocations: 11.97 kB / 471.6 MB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008784/0.3798, allocations: 6.363 MB / 478 MB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.3798, allocations: 4 kB / 478 MB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.381, allocations: 287.7 kB / 478.3 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001385/0.3824, allocations: 0.6123 MB / 478.9 MB, free: 124 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.3825, allocations: 51.97 kB / 478.9 MB, free: 72 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009762/0.3923, allocations: 10.51 MB / 489.5 MB, free: 5.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.3923, allocations: 4.031 kB / 489.5 MB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006088/0.3984, allocations: 4.193 MB / 493.6 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000797/0.3992, allocations: 0.5408 MB / 494.2 MB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002925/0.3995, allocations: 40 kB / 494.2 MB, free: 212 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.4006, allocations: 95.92 kB / 494.3 MB, free: 116 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.4008, allocations: 130.3 kB / 494.5 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.4009, allocations: 55.92 kB / 494.5 MB, free: 15.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002242/0.4032, allocations: 1.842 MB / 496.3 MB, free: 14.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4032, allocations: 4 kB / 496.4 MB, free: 14.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00187/0.4051, allocations: 0.6983 MB / 497.1 MB, free: 13.38 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.0009731/0.4061, allocations: 455.8 kB / 497.5 MB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004334/0.4104, allocations: 2.846 MB / 0.4886 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4104, allocations: 0.8125 kB / 0.4886 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002588/0.413, allocations: 1.946 MB / 0.4905 GB, free: 8.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.4154, allocations: 0.5525 MB / 0.4911 GB, free: 7.656 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/0.4258, allocations: 8.793 MB / 0.4996 GB, free: 14.83 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/0.4278, allocations: 2.574 MB / 0.5022 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005146/0.4283, allocations: 179.4 kB / 0.5023 GB, free: 12.05 MB / 430.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4283, allocations: 0 / 0.5023 GB, free: 12.05 MB / 430.1 MB Notification: Performance of Templates: time 0.2029/0.6312, allocations: 99.63 MB / 0.5996 GB, free: 90.58 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