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.001312/0.001312, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002248, allocations: 60.91 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1206, allocations: 50.53 MB / 358.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.18/0.3006, allocations: 14.26 MB / 373.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00972/0.3104, allocations: 5.37 MB / 378.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002056/0.3125, allocations: 84.5 kB / 378.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002755/0.3153, allocations: 1.051 MB / 379.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003855/0.3192, allocations: 1.418 MB / 381.1 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002467/0.3216, allocations: 1.014 MB / 382.1 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00494/0.3266, allocations: 4.374 MB / 386.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004168/0.3308, allocations: 3.356 MB / 389.8 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003341/0.3341, allocations: 2.022 MB / 391.9 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003318/0.3375, allocations: 2.404 MB / 394.3 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007606/0.3382, allocations: 0.5393 MB / 394.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001928/0.3402, allocations: 0.909 MB / 395.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00109/0.3413, allocations: 1.373 MB / 397.1 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002286/0.3436, allocations: 2.36 MB / 399.4 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006501/0.3501, allocations: 7.4 MB / 406.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.3501, allocations: 0 / 406.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3501, allocations: 0 / 406.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001483/0.3503, allocations: 0 / 406.8 MB, free: 10.86 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.01111/0.3614, allocations: 5.021 MB / 411.9 MB, free: 5.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3614, allocations: 12.02 kB / 411.9 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004487/0.3659, allocations: 0.9111 MB / 412.8 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004806/0.3708, allocations: 2.809 MB / 415.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001807/0.371, allocations: 254.6 kB / 415.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005369/0.3715, allocations: 338.3 kB / 416.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007433/0.3789, allocations: 4.554 MB / 420.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.446e-05/0.379, allocations: 0 / 420.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002996/0.3793, allocations: 140 kB / 420.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001534/0.3795, allocations: 154.7 kB / 421 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006824/0.3863, allocations: 3.911 MB / 424.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0221/0.4084, allocations: 14.01 MB / 438.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007345/0.4158, allocations: 6.971 MB / 445.9 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0029/0.4188, allocations: 1.685 MB / 447.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007803/0.4266, allocations: 4.482 MB / 452.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/0.4267, allocations: 55.88 kB / 452.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 4.228e-06/0.4267, allocations: 0 / 452.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=185): time 0.01648/0.4432, allocations: 7.771 MB / 459.9 MB, free: 4.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/0.4432, allocations: 69.41 kB / 460 MB, free: 4.379 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003787/0.447, allocations: 2.661 MB / 462.6 MB, free: 1.695 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001857/0.4472, allocations: 57.7 kB / 462.7 MB, free: 1.633 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001204/0.4485, allocations: 1.628 MB / 464.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005139/0.449, allocations: 0.6345 MB / 464.9 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005444/0.4495, allocations: 331.4 kB / 465.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.598e-05/0.4496, allocations: 305.1 kB / 465.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.4512, allocations: 0.9019 MB / 466.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/0.4529, allocations: 1.306 MB / 467.8 MB, free: 12.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003363/0.4563, allocations: 2.355 MB / 470.1 MB, free: 9.867 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.4563, allocations: 8 kB / 470.1 MB, free: 9.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005788/0.4621, allocations: 3.068 MB / 473.2 MB, free: 6.773 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/0.4621, allocations: 16.25 kB / 473.2 MB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.4622, allocations: 8 kB / 473.2 MB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/0.4636, allocations: 0.5465 MB / 473.8 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/0.4654, allocations: 439.3 kB / 474.2 MB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009198/0.4746, allocations: 7.604 MB / 481.8 MB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001696/0.4763, allocations: 79.94 kB / 481.9 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.4765, allocations: 75.98 kB / 482 MB, free: 13.75 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.002066/0.4786, allocations: 1.176 MB / 483.1 MB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005529/0.4791, allocations: 256.8 kB / 483.4 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005186/0.4843, allocations: 2.885 MB / 486.3 MB, free: 9.395 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.239e-05/0.4844, allocations: 27.92 kB / 486.3 MB, free: 9.367 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.4844, allocations: 8.062 kB / 486.3 MB, free: 9.359 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.4844, allocations: 15.91 kB / 486.3 MB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.4948, allocations: 6.341 MB / 492.7 MB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.037e-06/0.4948, allocations: 3.984 kB / 492.7 MB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001319/0.4961, allocations: 279.8 kB / 492.9 MB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.4977, allocations: 0.6161 MB / 493.6 MB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001303/0.4979, allocations: 47.98 kB / 493.6 MB, free: 2.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/0.5095, allocations: 11.44 MB / 0.4932 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5095, allocations: 64 / 0.4932 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007354/0.5169, allocations: 4.158 MB / 0.4973 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001782/0.5187, allocations: 0.5369 MB / 0.4978 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004173/0.5192, allocations: 43.94 kB / 0.4978 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.5203, allocations: 87.92 kB / 0.4979 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003903/0.5207, allocations: 137.7 kB / 0.4981 GB, free: 1.008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/0.5208, allocations: 55.97 kB / 0.4981 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002938/0.5238, allocations: 1.87 MB / 0.4999 GB, free: 15.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5238, allocations: 0 / 0.4999 GB, free: 15.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002767/0.5266, allocations: 0.6915 MB / 0.5006 GB, free: 14.38 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.001297/0.5279, allocations: 444.5 kB / 0.501 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00533/0.5332, allocations: 2.83 MB / 0.5038 GB, free: 11.21 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.094e-06/0.5333, allocations: 0 / 0.5038 GB, free: 11.21 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003029/0.5363, allocations: 1.942 MB / 0.5057 GB, free: 9.223 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002923/0.5392, allocations: 0.5961 MB / 0.5063 GB, free: 8.637 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.5522, allocations: 7.072 MB / 0.5132 GB, free: 1.543 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002394/0.5546, allocations: 2.643 MB / 0.5158 GB, free: 14.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001677/0.5563, allocations: 0.5086 MB / 0.5163 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000458/0.5568, allocations: 163.4 kB / 0.5164 GB, free: 14.19 MB / 446.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5568, allocations: 0 / 0.5164 GB, free: 14.19 MB / 446.1 MB Notification: Performance of Templates: time 0.2277/0.7845, allocations: 35.21 MB / 0.5508 GB, free: 135.5 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 -s cvode -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