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.001309/0.001309, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.281/1.281, allocations: 227.3 MB / 246.9 MB, free: 10.7 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 59.73 kB / 306.9 MB, free: 1 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07809/0.07926, allocations: 50.53 MB / 357.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01376/0.09306, allocations: 14.09 MB / 371.5 MB, free: 296 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.153/0.2461, allocations: 5.325 MB / 376.9 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002224/0.2483, allocations: 78.41 kB / 376.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00309/0.2515, allocations: 0.9267 MB / 377.9 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004049/0.2556, allocations: 1.271 MB / 379.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002261/0.2579, allocations: 0.9517 MB / 380.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005575/0.2635, allocations: 4.724 MB / 384.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003458/0.2669, allocations: 2.79 MB / 387.6 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00272/0.2697, allocations: 1.615 MB / 389.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003506/0.2732, allocations: 2.167 MB / 391.4 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000946/0.2742, allocations: 315.7 kB / 391.7 MB, free: 3.727 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002261/0.2764, allocations: 0.7012 MB / 392.4 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009377/0.2774, allocations: 1.09 MB / 393.5 MB, free: 3.031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002794/0.2802, allocations: 2.109 MB / 395.6 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005363/0.2856, allocations: 6.18 MB / 401.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2856, allocations: 0 / 401.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2856, allocations: 0 / 401.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001766/0.2858, allocations: 0 / 401.8 MB, free: 13.25 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.01304/0.2988, allocations: 5.014 MB / 406.8 MB, free: 9.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2989, allocations: 12.03 kB / 406.8 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004664/0.3036, allocations: 0.9193 MB / 407.7 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004867/0.3085, allocations: 2.699 MB / 410.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001881/0.3087, allocations: 253.5 kB / 410.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006841/0.3094, allocations: 335.9 kB / 411 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007887/0.3173, allocations: 4.549 MB / 415.6 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.397e-05/0.3174, allocations: 0 / 415.6 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003108/0.3177, allocations: 134.7 kB / 415.7 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000149/0.3178, allocations: 158.7 kB / 415.8 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006731/0.3246, allocations: 3.912 MB / 419.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02201/0.3466, allocations: 14.18 MB / 433.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007502/0.3542, allocations: 6.978 MB / 440.9 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002825/0.357, allocations: 1.691 MB / 442.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007612/0.3647, allocations: 4.5 MB / 447.1 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.3647, allocations: 55.88 kB / 447.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 3.727e-06/0.3647, allocations: 0 / 447.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=185): time 0.01701/0.3818, allocations: 7.761 MB / 454.9 MB, free: 7.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.3818, allocations: 77.41 kB / 455 MB, free: 7.766 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004361/0.3862, allocations: 2.657 MB / 457.6 MB, free: 5.086 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001878/0.3864, allocations: 59.97 kB / 457.7 MB, free: 5.023 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.3876, allocations: 1.634 MB / 459.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005698/0.3881, allocations: 0.6235 MB / 460 MB, free: 2.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005872/0.3887, allocations: 331.4 kB / 460.3 MB, free: 2.422 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.347e-05/0.3888, allocations: 305.1 kB / 460.6 MB, free: 2.121 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/0.3904, allocations: 0.9058 MB / 461.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001844/0.3923, allocations: 1.314 MB / 462.8 MB, free: 15.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003519/0.3958, allocations: 2.352 MB / 465.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/0.3959, allocations: 4 kB / 465.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005694/0.4016, allocations: 3.076 MB / 468.2 MB, free: 10.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.4016, allocations: 8 kB / 468.2 MB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/0.4016, allocations: 15.94 kB / 468.3 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001595/0.4032, allocations: 0.5538 MB / 468.8 MB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.405, allocations: 427.3 kB / 469.2 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008858/0.4139, allocations: 6.973 MB / 476.2 MB, free: 1.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.4158, allocations: 87.94 kB / 476.3 MB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003208/0.4161, allocations: 75.98 kB / 476.4 MB, free: 1.77 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.00234/0.4185, allocations: 1.169 MB / 477.5 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007165/0.4192, allocations: 256.9 kB / 477.8 MB, free: 344 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005674/0.4249, allocations: 2.892 MB / 480.7 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/0.4249, allocations: 19.98 kB / 480.7 MB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.57e-05/0.425, allocations: 12 kB / 480.7 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.276e-05/0.425, allocations: 11.91 kB / 480.7 MB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.4363, allocations: 6.349 MB / 487.1 MB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.4363, allocations: 0 / 487.1 MB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001337/0.4377, allocations: 271.6 kB / 487.3 MB, free: 6.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001689/0.4394, allocations: 0.6251 MB / 488 MB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001536/0.4396, allocations: 43.98 kB / 488 MB, free: 6.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01118/0.4508, allocations: 10.47 MB / 498.5 MB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.4508, allocations: 7.969 kB / 498.5 MB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007417/0.4582, allocations: 4.161 MB / 0.4909 GB, free: 6.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/0.4595, allocations: 0.5408 MB / 0.4914 GB, free: 6.277 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006322/0.4602, allocations: 36 kB / 0.4914 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/0.4616, allocations: 87.92 kB / 0.4915 GB, free: 6.156 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003756/0.462, allocations: 141.7 kB / 0.4916 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/0.4621, allocations: 55.97 kB / 0.4917 GB, free: 5.961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003232/0.4654, allocations: 1.863 MB / 0.4935 GB, free: 4.086 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4654, allocations: 0 / 0.4935 GB, free: 4.086 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002791/0.4682, allocations: 0.7018 MB / 0.4942 GB, free: 3.387 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.001215/0.4694, allocations: 462.2 kB / 0.4946 GB, free: 3.055 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00526/0.4747, allocations: 2.829 MB / 0.4974 GB, free: 212 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.187e-06/0.4747, allocations: 0 / 0.4974 GB, free: 212 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003426/0.4782, allocations: 1.935 MB / 0.4993 GB, free: 14.22 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003695/0.4819, allocations: 0.5621 MB / 0.4998 GB, free: 13.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01406/0.4959, allocations: 8.67 MB / 0.5083 GB, free: 4.965 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002948/0.4989, allocations: 2.579 MB / 0.5108 GB, free: 2.355 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008852/0.4998, allocations: 187.4 kB / 0.511 GB, free: 2.172 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4999, allocations: 0 / 0.511 GB, free: 2.172 MB / 430.1 MB Notification: Performance of Templates: time 0.2354/0.7352, allocations: 101.1 MB / 0.6098 GB, free: 78.53 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/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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches