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.001077/0.001077, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00119/0.00119, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 55.75 kB / 306.9 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09137/0.09253, allocations: 50.54 MB / 357.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.1601/0.2527, allocations: 14.25 MB / 371.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007913/0.2606, allocations: 5.373 MB / 377.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.2621, allocations: 84.91 kB / 377.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.2644, allocations: 1.059 MB / 378.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003046/0.2675, allocations: 1.41 MB / 379.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00201/0.2695, allocations: 1.02 MB / 380.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004052/0.2736, allocations: 4.336 MB / 385 MB, free: 6.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003421/0.277, allocations: 3.358 MB / 388.4 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002792/0.2798, allocations: 2.006 MB / 390.4 MB, free: 3.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00325/0.2831, allocations: 2.452 MB / 392.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007818/0.2839, allocations: 0.5337 MB / 393.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001897/0.2858, allocations: 0.9196 MB / 394.3 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009116/0.2867, allocations: 1.326 MB / 395.6 MB, free: 1.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002027/0.2887, allocations: 2.364 MB / 398 MB, free: 348 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005868/0.2946, allocations: 7.34 MB / 405.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2946, allocations: 0 / 405.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2946, allocations: 4 kB / 405.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.548e-05/0.2947, allocations: 0 / 405.3 MB, free: 10.9 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.0103/0.305, allocations: 5.026 MB / 410.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.3051, allocations: 12.02 kB / 410.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004372/0.3095, allocations: 0.9105 MB / 411.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004082/0.3136, allocations: 2.743 MB / 414 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001709/0.3137, allocations: 249.5 kB / 414.3 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004799/0.3142, allocations: 347 kB / 414.6 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007031/0.3213, allocations: 4.543 MB / 419.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.173e-05/0.3213, allocations: 3.938 kB / 419.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003018/0.3217, allocations: 142.4 kB / 419.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001546/0.3218, allocations: 150.7 kB / 419.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00636/0.3282, allocations: 3.911 MB / 423.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01997/0.3482, allocations: 14.19 MB / 437.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007743/0.3559, allocations: 6.978 MB / 444.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00304/0.359, allocations: 1.684 MB / 446.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00759/0.3666, allocations: 4.5 MB / 450.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.775e-05/0.3667, allocations: 51.88 kB / 450.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=165): time 3.817e-06/0.3667, allocations: 0 / 450.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=185): time 0.01681/0.3835, allocations: 7.766 MB / 458.5 MB, free: 4.375 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.3836, allocations: 77.34 kB / 458.6 MB, free: 4.289 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004023/0.3877, allocations: 2.661 MB / 461.2 MB, free: 1.605 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.3878, allocations: 57.7 kB / 461.3 MB, free: 1.543 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.389, allocations: 1.63 MB / 462.9 MB, free: 15.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005051/0.3895, allocations: 0.627 MB / 463.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005565/0.3901, allocations: 338.3 kB / 463.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.922e-05/0.3902, allocations: 305.1 kB / 464.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.3918, allocations: 0.9058 MB / 465.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001876/0.3937, allocations: 1.306 MB / 466.4 MB, free: 12.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003599/0.3973, allocations: 2.355 MB / 468.8 MB, free: 9.773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.248e-06/0.3973, allocations: 4 kB / 468.8 MB, free: 9.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005608/0.4029, allocations: 3.072 MB / 471.8 MB, free: 6.672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.403, allocations: 12 kB / 471.8 MB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.403, allocations: 8 kB / 471.8 MB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.4045, allocations: 0.5596 MB / 472.4 MB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.4063, allocations: 431.4 kB / 472.8 MB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009442/0.4157, allocations: 7.605 MB / 480.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.4174, allocations: 83.94 kB / 480.5 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002107/0.4176, allocations: 80.05 kB / 480.6 MB, free: 13.63 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.001973/0.4196, allocations: 1.18 MB / 481.8 MB, free: 12.44 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005949/0.4202, allocations: 256.8 kB / 482 MB, free: 12.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005561/0.4257, allocations: 2.881 MB / 484.9 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.079e-05/0.4258, allocations: 23.98 kB / 484.9 MB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/0.4258, allocations: 8 kB / 484.9 MB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.4258, allocations: 7.969 kB / 484.9 MB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/0.4364, allocations: 6.36 MB / 491.3 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.4364, allocations: 0 / 491.3 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.4377, allocations: 279.7 kB / 491.6 MB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001574/0.4393, allocations: 0.6232 MB / 492.2 MB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001353/0.4395, allocations: 46.02 kB / 492.2 MB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/0.4515, allocations: 11.45 MB / 0.4919 GB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.4515, allocations: 0 / 0.4919 GB, free: 5.902 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007517/0.459, allocations: 4.156 MB / 0.496 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.4603, allocations: 0.5408 MB / 0.4965 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005623/0.4609, allocations: 38.91 kB / 0.4965 GB, free: 1.109 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.4623, allocations: 83.92 kB / 0.4966 GB, free: 1.027 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003715/0.4627, allocations: 141.8 kB / 0.4967 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.4629, allocations: 56.03 kB / 0.4968 GB, free: 0.832 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003057/0.4659, allocations: 1.867 MB / 0.4986 GB, free: 14.95 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4659, allocations: 0 / 0.4986 GB, free: 14.95 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00266/0.4686, allocations: 0.7032 MB / 0.4993 GB, free: 14.25 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.001158/0.4698, allocations: 456.5 kB / 0.4997 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007919/0.4777, allocations: 3.444 MB / 0.5031 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.4777, allocations: 0 / 0.5031 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00329/0.481, allocations: 1.936 MB / 0.505 GB, free: 8.473 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003184/0.4842, allocations: 0.5928 MB / 0.5056 GB, free: 7.887 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.4971, allocations: 7.168 MB / 0.5126 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003027/0.5002, allocations: 2.633 MB / 0.5151 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001984/0.5022, allocations: 0.5086 MB / 0.5156 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005682/0.5027, allocations: 171.3 kB / 0.5158 GB, free: 13.35 MB / 446.1 MB Notification: Performance of SimCode: time 6.62e-07/0.5028, allocations: 0 / 0.5158 GB, free: 13.35 MB / 446.1 MB Notification: Performance of Templates: time 0.2122/0.7149, allocations: 37.53 MB / 0.5524 GB, free: 133.4 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