Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_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.001588/0.001588, allocations: 116.5 kB / 18.45 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 207.8 kB / 19.4 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.418/1.418, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 67.89 kB / 359.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2484, allocations: 50.53 MB / 410.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01714/0.2656, allocations: 14.31 MB / 424.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.2758, allocations: 5.366 MB / 429.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002249/0.2781, allocations: 83.69 kB / 430 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002743/0.2808, allocations: 1.095 MB / 431.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004135/0.2849, allocations: 1.484 MB / 432.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.2873, allocations: 1.022 MB / 433.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005504/0.2928, allocations: 4.354 MB / 438 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003117/0.296, allocations: 2.349 MB / 440.3 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002913/0.2989, allocations: 2.025 MB / 442.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003765/0.3026, allocations: 2.409 MB / 444.7 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009315/0.3036, allocations: 0.5351 MB / 445.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.3055, allocations: 0.9214 MB / 446.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001334/0.3069, allocations: 1.371 MB / 447.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00304/0.3099, allocations: 2.36 MB / 449.9 MB, free: 9.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008892/0.3188, allocations: 7.412 MB / 457.3 MB, free: 2.094 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3188, allocations: 0 / 457.3 MB, free: 2.094 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3188, allocations: 4 kB / 457.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001672/0.319, allocations: 0 / 457.3 MB, free: 2.09 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.01343/0.3324, allocations: 5.143 MB / 462.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.3324, allocations: 8.031 kB / 462.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004894/0.3373, allocations: 0.9349 MB / 463.4 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0056/0.3429, allocations: 2.832 MB / 466.3 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002089/0.3432, allocations: 250.6 kB / 466.5 MB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006075/0.3438, allocations: 339.9 kB / 466.8 MB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00812/0.3519, allocations: 4.547 MB / 471.4 MB, free: 3.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-05/0.3519, allocations: 3.953 kB / 471.4 MB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003317/0.3523, allocations: 140 kB / 471.5 MB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/0.3524, allocations: 150.7 kB / 471.7 MB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007593/0.36, allocations: 3.918 MB / 475.6 MB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02422/0.3843, allocations: 14.03 MB / 489.6 MB, free: 1.301 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009194/0.3934, allocations: 6.842 MB / 496.5 MB, free: 9.656 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003161/0.3966, allocations: 1.575 MB / 498 MB, free: 8.078 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008068/0.4047, allocations: 4.479 MB / 0.4907 GB, free: 3.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.4047, allocations: 55.86 kB / 0.4908 GB, free: 3.395 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 3.366e-06/0.4047, allocations: 0 / 0.4908 GB, free: 3.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.0176/0.4223, allocations: 7.814 MB / 0.4984 GB, free: 11.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/0.4224, allocations: 69.41 kB / 0.4985 GB, free: 11.37 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00391/0.4263, allocations: 2.669 MB / 0.5011 GB, free: 8.676 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001834/0.4265, allocations: 57.7 kB / 0.5012 GB, free: 8.613 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.4279, allocations: 1.662 MB / 0.5028 GB, free: 6.934 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006293/0.4285, allocations: 0.6584 MB / 0.5034 GB, free: 6.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005725/0.4291, allocations: 339.4 kB / 0.5037 GB, free: 5.934 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4293, allocations: 301.1 kB / 0.504 GB, free: 5.637 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/0.431, allocations: 0.9097 MB / 0.5049 GB, free: 4.727 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002088/0.4331, allocations: 1.306 MB / 0.5062 GB, free: 3.27 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00398/0.4371, allocations: 2.355 MB / 0.5085 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.4371, allocations: 0 / 0.5085 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006124/0.4432, allocations: 3.066 MB / 0.5115 GB, free: 13.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.4432, allocations: 8 kB / 0.5115 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/0.4432, allocations: 12 kB / 0.5115 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/0.4449, allocations: 0.5596 MB / 0.5121 GB, free: 13.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/0.4468, allocations: 431.3 kB / 0.5125 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/0.4575, allocations: 7.6 MB / 0.5199 GB, free: 4.805 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001851/0.4594, allocations: 92 kB / 0.52 GB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/0.4596, allocations: 75.98 kB / 0.52 GB, free: 4.641 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.002192/0.4618, allocations: 1.173 MB / 0.5212 GB, free: 3.457 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005837/0.4624, allocations: 270.3 kB / 0.5214 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005728/0.4681, allocations: 2.874 MB / 0.5243 GB, free: 296 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.059e-05/0.4681, allocations: 16 kB / 0.5243 GB, free: 280 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.4681, allocations: 16 kB / 0.5243 GB, free: 264 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.4681, allocations: 7.969 kB / 0.5243 GB, free: 256 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.4793, allocations: 6.318 MB / 0.5305 GB, free: 9.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4793, allocations: 0 / 0.5305 GB, free: 9.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001392/0.4807, allocations: 279.6 kB / 0.5307 GB, free: 9.566 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/0.4824, allocations: 0.6123 MB / 0.5313 GB, free: 8.941 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.4826, allocations: 47.98 kB / 0.5314 GB, free: 8.895 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2058/0.6884, allocations: 11.46 MB / 0.5426 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.6884, allocations: 1.781 kB / 0.5426 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006751/0.6951, allocations: 4.158 MB / 0.5466 GB, free: 118.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.6962, allocations: 0.5576 MB / 0.5472 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.6965, allocations: 33.09 kB / 0.5472 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.6976, allocations: 87.41 kB / 0.5473 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003089/0.698, allocations: 142.3 kB / 0.5474 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.6981, allocations: 50 kB / 0.5475 GB, free: 118.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002135/0.7002, allocations: 1.864 MB / 0.5493 GB, free: 117.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7002, allocations: 3.656 kB / 0.5493 GB, free: 117.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002087/0.7023, allocations: 0.692 MB / 0.55 GB, free: 117.8 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.001463/0.7037, allocations: 461.2 kB / 0.5504 GB, free: 117.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004231/0.708, allocations: 2.719 MB / 0.5531 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.708, allocations: 3.938 kB / 0.5531 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002546/0.7105, allocations: 1.839 MB / 0.5549 GB, free: 115.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002664/0.7132, allocations: 0.5925 MB / 0.5554 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009792/0.723, allocations: 7.2 MB / 0.5625 GB, free: 110.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001718/0.7247, allocations: 2.635 MB / 0.565 GB, free: 108.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001524/0.7262, allocations: 0.5136 MB / 0.5655 GB, free: 107.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004429/0.7267, allocations: 167 kB / 0.5657 GB, free: 107.7 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.7267, allocations: 0 / 0.5657 GB, free: 107.7 MB / 462.1 MB Notification: Performance of Templates: time 0.05309/0.7798, allocations: 36.28 MB / 0.6011 GB, free: 72.04 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches