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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00129/0.00129, allocations: 115.4 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001475/0.001475, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.4 MB, free: 9.086 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 64.33 kB / 306.5 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09112, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01506/0.1062, allocations: 14.1 MB / 371.1 MB, free: 0 / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009118/0.2664, allocations: 5.27 MB / 376.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.2683, allocations: 80.22 kB / 376.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002455/0.2708, allocations: 0.9367 MB / 377.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003311/0.2742, allocations: 1.279 MB / 378.7 MB, free: 9 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001975/0.2762, allocations: 0.9294 MB / 379.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004557/0.2807, allocations: 4.557 MB / 384.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003439/0.2842, allocations: 3.355 MB / 387.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002495/0.2867, allocations: 1.897 MB / 389.4 MB, free: 4.078 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002954/0.2897, allocations: 2.337 MB / 391.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007965/0.2905, allocations: 0.5303 MB / 392.3 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.2923, allocations: 0.9144 MB / 393.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008982/0.2933, allocations: 1.329 MB / 394.5 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002136/0.2954, allocations: 2.357 MB / 396.9 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006948/0.3024, allocations: 7.363 MB / 404.2 MB, free: 11.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3024, allocations: 0 / 404.2 MB, free: 11.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3024, allocations: 3.938 kB / 404.2 MB, free: 11.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000136/0.3025, allocations: 1.469 kB / 404.2 MB, free: 11.64 MB / 318.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.01248/0.315, allocations: 5.01 MB / 409.2 MB, free: 6.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.3151, allocations: 12.03 kB / 409.3 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004663/0.3198, allocations: 0.9127 MB / 410.2 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00483/0.3246, allocations: 2.703 MB / 412.9 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002107/0.3248, allocations: 257.8 kB / 413.1 MB, free: 2.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005775/0.3254, allocations: 327.9 kB / 413.4 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007733/0.3332, allocations: 4.553 MB / 418 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.714e-05/0.3332, allocations: 0 / 418 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003183/0.3336, allocations: 135.3 kB / 418.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001614/0.3337, allocations: 154.7 kB / 418.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006603/0.3403, allocations: 3.915 MB / 422.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02095/0.3613, allocations: 14.19 MB / 436.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007495/0.3688, allocations: 6.982 MB / 443.4 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.3717, allocations: 1.694 MB / 445.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00709/0.3788, allocations: 4.491 MB / 449.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.388e-05/0.3788, allocations: 51.81 kB / 449.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 3.146e-06/0.3789, allocations: 0 / 449.6 MB, free: 13.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=185): time 0.01678/0.3956, allocations: 7.768 MB / 457.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.3957, allocations: 73.41 kB / 457.4 MB, free: 5.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003614/0.3994, allocations: 2.657 MB / 460.1 MB, free: 2.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.3995, allocations: 57.7 kB / 460.2 MB, free: 2.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.4007, allocations: 1.633 MB / 461.8 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004972/0.4012, allocations: 0.6271 MB / 462.4 MB, free: 180 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005691/0.4018, allocations: 333.4 kB / 462.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.4019, allocations: 309.1 kB / 463 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.4034, allocations: 0.9057 MB / 463.9 MB, free: 14.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.4053, allocations: 1.31 MB / 465.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003533/0.4088, allocations: 2.352 MB / 467.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4088, allocations: 4 kB / 467.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005604/0.4145, allocations: 3.072 MB / 470.7 MB, free: 7.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.4145, allocations: 12 kB / 470.7 MB, free: 7.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.4145, allocations: 8 kB / 470.7 MB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/0.416, allocations: 0.5558 MB / 471.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001792/0.4178, allocations: 431.3 kB / 471.7 MB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009361/0.4272, allocations: 7.609 MB / 479.3 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.4288, allocations: 99.84 kB / 479.4 MB, free: 14.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001594/0.429, allocations: 74.48 kB / 479.5 MB, free: 14.54 MB / 398.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.001903/0.4309, allocations: 1.165 MB / 480.6 MB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004667/0.4314, allocations: 260.8 kB / 480.9 MB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005251/0.4367, allocations: 2.898 MB / 483.8 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/0.4367, allocations: 20 kB / 483.8 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.4367, allocations: 8 kB / 483.8 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.648e-05/0.4367, allocations: 7.969 kB / 483.8 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009895/0.4466, allocations: 6.346 MB / 490.2 MB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.4467, allocations: 0 / 490.2 MB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/0.448, allocations: 279.7 kB / 490.4 MB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001678/0.4497, allocations: 0.6206 MB / 491.1 MB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.4499, allocations: 47.97 kB / 491.1 MB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01265/0.4625, allocations: 11.47 MB / 0.4908 GB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4626, allocations: 0 / 0.4908 GB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007094/0.4697, allocations: 4.164 MB / 0.4949 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009898/0.4707, allocations: 0.5408 MB / 0.4954 GB, free: 2.039 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003115/0.471, allocations: 42.75 kB / 0.4954 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.4722, allocations: 79.94 kB / 0.4955 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003252/0.4725, allocations: 141.8 kB / 0.4956 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.4726, allocations: 47.98 kB / 0.4957 GB, free: 1.734 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002473/0.4751, allocations: 1.872 MB / 0.4975 GB, free: 15.85 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4751, allocations: 0 / 0.4975 GB, free: 15.85 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002578/0.4777, allocations: 0.6915 MB / 0.4982 GB, free: 15.16 MB / 430.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.001136/0.4789, allocations: 462.9 kB / 0.4986 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007427/0.4863, allocations: 3.434 MB / 0.502 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4863, allocations: 0 / 0.502 GB, free: 11.37 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002976/0.4893, allocations: 1.938 MB / 0.5039 GB, free: 9.379 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/0.4917, allocations: 0.5954 MB / 0.5045 GB, free: 8.789 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.5032, allocations: 8.664 MB / 0.5129 GB, free: 116 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002266/0.5055, allocations: 2.648 MB / 0.5155 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001679/0.5072, allocations: 0.5008 MB / 0.516 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004654/0.5077, allocations: 167.4 kB / 0.5162 GB, free: 12.76 MB / 446.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5077, allocations: 0 / 0.5162 GB, free: 12.76 MB / 446.1 MB Notification: Performance of Templates: time 0.2321/0.7398, allocations: 37.41 MB / 0.5527 GB, free: 134.3 MB / 446.1 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/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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches