Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009267/0.0009267, allocations: 94.64 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 176.4 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 223.2 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002713/0.0002713, allocations: 13.62 kB / 301.4 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09424, allocations: 50.41 MB / 351.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.0129/0.1072, allocations: 12.8 MB / 364.7 MB, free: 6.824 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009292/0.1165, allocations: 4.876 MB / 369.5 MB, free: 1.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.1184, allocations: 71.69 kB / 369.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003211/0.1216, allocations: 0.8979 MB / 370.5 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1586/0.2803, allocations: 1.251 MB / 371.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002439/0.2828, allocations: 0.8895 MB / 372.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005539/0.2883, allocations: 4.611 MB / 377.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003124/0.2915, allocations: 2.754 MB / 380 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002294/0.2938, allocations: 1.405 MB / 381.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002746/0.2965, allocations: 1.908 MB / 383.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005514/0.2971, allocations: 223.8 kB / 383.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001632/0.2987, allocations: 0.6059 MB / 384.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008598/0.2996, allocations: 0.9447 MB / 385.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002221/0.3018, allocations: 1.961 MB / 387 MB, free: 7.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005676/0.3075, allocations: 6.907 MB / 394 MB, free: 3.742 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3075, allocations: 1.375 kB / 394 MB, free: 3.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3076, allocations: 0 / 394 MB, free: 3.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001317/0.3077, allocations: 0 / 394 MB, free: 3.742 MB / 302.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.009631/0.3173, allocations: 4.221 MB / 398.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.3174, allocations: 9.656 kB / 398.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004411/0.3218, allocations: 0.8944 MB / 399.1 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004433/0.3263, allocations: 2.663 MB / 401.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001817/0.3264, allocations: 250.7 kB / 402 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000544/0.327, allocations: 339.3 kB / 402.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007906/0.3349, allocations: 4.557 MB / 406.9 MB, free: 9.355 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.95e-05/0.335, allocations: 11.98 kB / 406.9 MB, free: 9.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003339/0.3354, allocations: 132 kB / 407 MB, free: 9.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00016/0.3355, allocations: 154.7 kB / 407.2 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007188/0.3427, allocations: 3.946 MB / 411.1 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02376/0.3665, allocations: 14.24 MB / 425.4 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008599/0.3752, allocations: 6.988 MB / 432.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00362/0.3788, allocations: 1.707 MB / 434.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.3889, allocations: 4.256 MB / 438.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.482e-05/0.389, allocations: 47.88 kB / 438.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 4.939e-06/0.389, allocations: 0 / 438.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01894/0.408, allocations: 7.873 MB / 446.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.408, allocations: 69.41 kB / 446.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004405/0.4125, allocations: 2.621 MB / 448.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002858/0.4128, allocations: 57.7 kB / 449 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.4141, allocations: 1.626 MB / 450.6 MB, free: 12.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007018/0.4148, allocations: 0.6187 MB / 451.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003244/0.4151, allocations: 157.6 kB / 451.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.674e-05/0.4152, allocations: 309 kB / 451.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00186/0.4171, allocations: 0.9214 MB / 452.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.4192, allocations: 1.321 MB / 453.9 MB, free: 8.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004/0.4233, allocations: 2.371 MB / 456.3 MB, free: 6.438 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.221e-05/0.4233, allocations: 4 kB / 456.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006245/0.4295, allocations: 3.106 MB / 459.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.4296, allocations: 8 kB / 459.4 MB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.506e-05/0.4296, allocations: 12 kB / 459.4 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001603/0.4312, allocations: 0.5538 MB / 460 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001888/0.4331, allocations: 431.3 kB / 460.4 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01022/0.4434, allocations: 6.982 MB / 467.4 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/0.4456, allocations: 99.94 kB / 467.5 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003756/0.446, allocations: 75.98 kB / 467.5 MB, free: 10.91 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.002768/0.4488, allocations: 1.165 MB / 468.7 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008542/0.4496, allocations: 248.9 kB / 469 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006785/0.4564, allocations: 2.912 MB / 471.9 MB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.862e-05/0.4565, allocations: 23.98 kB / 471.9 MB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-05/0.4565, allocations: 8 kB / 471.9 MB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-05/0.4566, allocations: 11.95 kB / 471.9 MB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/0.4691, allocations: 6.355 MB / 478.3 MB, free: 104 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/0.4692, allocations: 0 / 478.3 MB, free: 104 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.4706, allocations: 287.7 kB / 478.5 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.4724, allocations: 0.6224 MB / 479.2 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000173/0.4726, allocations: 43.98 kB / 479.2 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/0.4848, allocations: 10.52 MB / 489.7 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4848, allocations: 0 / 489.7 MB, free: 4.113 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008008/0.4929, allocations: 4.193 MB / 493.9 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/0.4942, allocations: 0.5486 MB / 494.5 MB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005794/0.4948, allocations: 36 kB / 494.5 MB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/0.4964, allocations: 87.94 kB / 494.6 MB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/0.4968, allocations: 145.7 kB / 494.7 MB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.4969, allocations: 55.98 kB / 494.8 MB, free: 15 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003308/0.5003, allocations: 1.839 MB / 496.6 MB, free: 13.15 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.5003, allocations: 0 / 496.6 MB, free: 13.15 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003051/0.5033, allocations: 0.6915 MB / 497.3 MB, free: 12.46 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.001255/0.5046, allocations: 467.8 kB / 497.8 MB, free: 12.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005587/0.5102, allocations: 2.842 MB / 0.4889 GB, free: 9.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.5102, allocations: 4 kB / 0.4889 GB, free: 9.266 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003335/0.5136, allocations: 1.946 MB / 0.4908 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003974/0.5176, allocations: 0.5538 MB / 0.4913 GB, free: 6.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/0.5317, allocations: 8.773 MB / 0.4999 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00303/0.5348, allocations: 2.628 MB / 0.5025 GB, free: 11.26 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0024/0.5372, allocations: 0.5044 MB / 0.5029 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007874/0.538, allocations: 167.4 kB / 0.5031 GB, free: 10.59 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.538, allocations: 0 / 0.5031 GB, free: 10.59 MB / 430.1 MB Notification: Performance of Templates: time 0.2211/0.7591, allocations: 35.13 MB / 0.5374 GB, free: 147.1 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches