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.001746/0.001746, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002525/0.002526, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.668/2.668, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 63.89 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4786/0.4808, allocations: 50.54 MB / 410 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02918/0.5101, allocations: 14.26 MB / 424.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.5277, allocations: 5.351 MB / 429.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004339/0.5321, allocations: 83.69 kB / 429.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01011/0.5423, allocations: 1.052 MB / 430.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008166/0.5505, allocations: 1.429 MB / 432.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005402/0.556, allocations: 1.022 MB / 433.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01461/0.5706, allocations: 4.366 MB / 437.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009265/0.58, allocations: 3.352 MB / 440.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005997/0.586, allocations: 2.025 MB / 442.9 MB, free: 452 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01137/0.5975, allocations: 2.41 MB / 445.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002751/0.6003, allocations: 0.5352 MB / 445.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004883/0.6052, allocations: 0.9095 MB / 446.8 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003527/0.6088, allocations: 1.367 MB / 448.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007927/0.6168, allocations: 2.36 MB / 450.5 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01637/0.6332, allocations: 7.397 MB / 457.9 MB, free: 1.418 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.155e-05/0.6333, allocations: 0 / 457.9 MB, free: 1.418 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.6333, allocations: 0 / 457.9 MB, free: 1.418 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002444/0.6336, allocations: 0 / 457.9 MB, free: 1.418 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.02529/0.6589, allocations: 5.037 MB / 462.9 MB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.344e-05/0.659, allocations: 16.03 kB / 462.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/0.6695, allocations: 0.9053 MB / 463.9 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01123/0.6808, allocations: 2.814 MB / 466.7 MB, free: 8.488 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004887/0.6813, allocations: 246.7 kB / 466.9 MB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001743/0.6831, allocations: 339.9 kB / 467.2 MB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01962/0.7028, allocations: 4.543 MB / 471.8 MB, free: 3.324 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002118/0.703, allocations: 4 kB / 471.8 MB, free: 3.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001515/0.7046, allocations: 140 kB / 471.9 MB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003577/0.705, allocations: 166.6 kB / 472.1 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01611/0.7211, allocations: 3.911 MB / 476 MB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0501/0.7713, allocations: 13.99 MB / 490 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01467/0.786, allocations: 6.983 MB / 497 MB, free: 9.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006284/0.7924, allocations: 1.723 MB / 498.7 MB, free: 7.297 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01623/0.8087, allocations: 4.475 MB / 0.4914 GB, free: 2.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.365e-05/0.8088, allocations: 51.88 kB / 0.4914 GB, free: 2.621 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 8.767e-06/0.8088, allocations: 0 / 0.4914 GB, free: 2.621 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.03484/0.8437, allocations: 7.78 MB / 0.499 GB, free: 10.7 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/0.8438, allocations: 73.41 kB / 0.4991 GB, free: 10.62 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007909/0.8518, allocations: 2.657 MB / 0.5017 GB, free: 7.938 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005105/0.8523, allocations: 57.7 kB / 0.5017 GB, free: 7.875 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002304/0.8547, allocations: 1.631 MB / 0.5033 GB, free: 6.223 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/0.8561, allocations: 0.6237 MB / 0.5039 GB, free: 5.59 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00148/0.8576, allocations: 331.4 kB / 0.5043 GB, free: 5.262 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.8578, allocations: 309.1 kB / 0.5046 GB, free: 4.957 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003278/0.8611, allocations: 0.9097 MB / 0.5054 GB, free: 4.047 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00654/0.8677, allocations: 1.306 MB / 0.5067 GB, free: 2.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007556/0.8753, allocations: 2.348 MB / 0.509 GB, free: 100 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-05/0.8754, allocations: 7.938 kB / 0.509 GB, free: 92 kB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.0118/0.8873, allocations: 3.08 MB / 0.512 GB, free: 12.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.273e-05/0.8874, allocations: 8 kB / 0.512 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.846e-05/0.8874, allocations: 12 kB / 0.512 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002964/0.8904, allocations: 0.548 MB / 0.5126 GB, free: 12.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003364/0.8938, allocations: 439.3 kB / 0.513 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01854/0.9124, allocations: 7.588 MB / 0.5204 GB, free: 4.125 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003115/0.9156, allocations: 95.91 kB / 0.5205 GB, free: 4.031 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005789/0.9162, allocations: 75.98 kB / 0.5206 GB, free: 3.957 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.004022/0.9203, allocations: 1.173 MB / 0.5217 GB, free: 2.773 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/0.9216, allocations: 248.9 kB / 0.522 GB, free: 2.527 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/0.932, allocations: 2.901 MB / 0.5248 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.986e-05/0.9321, allocations: 16 kB / 0.5248 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.492e-05/0.9322, allocations: 15.98 kB / 0.5248 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.758e-05/0.9322, allocations: 7.969 kB / 0.5248 GB, free: 15.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02312/0.9554, allocations: 6.342 MB / 0.531 GB, free: 9.129 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.028e-05/0.9555, allocations: 4 kB / 0.531 GB, free: 9.125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002497/0.958, allocations: 279.7 kB / 0.5313 GB, free: 8.852 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00372/0.9618, allocations: 0.62 MB / 0.5319 GB, free: 8.219 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004064/0.9622, allocations: 43.97 kB / 0.5319 GB, free: 8.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3816/1.344, allocations: 11.44 MB / 0.5431 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/1.344, allocations: 2.781 kB / 0.5431 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.356, allocations: 4.16 MB / 0.5472 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/1.358, allocations: 0.5424 MB / 0.5477 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007419/1.359, allocations: 39.81 kB / 0.5477 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/1.361, allocations: 85.14 kB / 0.5478 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005513/1.361, allocations: 136.8 kB / 0.548 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000204/1.362, allocations: 59 kB / 0.548 GB, free: 118.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004126/1.366, allocations: 1.865 MB / 0.5498 GB, free: 117.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.32e-07/1.366, allocations: 1.062 kB / 0.5498 GB, free: 117.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004202/1.37, allocations: 0.6922 MB / 0.5505 GB, free: 117.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.001932/1.372, allocations: 454.5 kB / 0.5509 GB, free: 117.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008208/1.38, allocations: 2.83 MB / 0.5537 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/1.38, allocations: 0 / 0.5537 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004522/1.385, allocations: 1.936 MB / 0.5556 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004508/1.389, allocations: 0.5931 MB / 0.5562 GB, free: 115 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0195/1.409, allocations: 7.073 MB / 0.5631 GB, free: 109.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003729/1.413, allocations: 2.584 MB / 0.5656 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/1.414, allocations: 182.4 kB / 0.5658 GB, free: 107.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.412e-06/1.414, allocations: 0 / 0.5658 GB, free: 107.6 MB / 462.1 MB Notification: Performance of Templates: time 0.1814/1.595, allocations: 101.9 MB / 0.6653 GB, free: 6.129 MB / 462.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