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.001363/0.001363, allocations: 110.6 kB / 17.06 MB, free: 6.023 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.001086/0.001086, allocations: 191 kB / 17.99 MB, free: 5.109 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: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009307/0.0009307, allocations: 39.92 kB / 351.3 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2601, allocations: 49.44 MB / 400.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01481/0.2749, allocations: 13.62 MB / 414.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009276/0.2842, allocations: 4.965 MB / 419.3 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002036/0.2863, allocations: 79.69 kB / 419.4 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002497/0.2888, allocations: 1.029 MB / 420.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003466/0.2924, allocations: 1.405 MB / 421.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.2944, allocations: 0.9737 MB / 422.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00438/0.2988, allocations: 4.307 MB / 427.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003568/0.3024, allocations: 3.344 MB / 430.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.3049, allocations: 2.013 MB / 432.5 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002737/0.3077, allocations: 2.277 MB / 434.8 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007837/0.3084, allocations: 0.5312 MB / 435.3 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001655/0.3101, allocations: 0.9252 MB / 436.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.3112, allocations: 1.367 MB / 437.6 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002231/0.3135, allocations: 2.345 MB / 439.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006686/0.3202, allocations: 7.361 MB / 447.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3202, allocations: 4 kB / 447.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3202, allocations: 3.938 kB / 447.3 MB, free: 10.1 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.639e-05/0.3203, allocations: 0 / 447.3 MB, free: 10.1 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.01122/0.3315, allocations: 4.98 MB / 452.3 MB, free: 5.043 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.3316, allocations: 12.03 kB / 452.3 MB, free: 5.031 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004432/0.336, allocations: 0.8741 MB / 453.2 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004567/0.3406, allocations: 2.767 MB / 455.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.3408, allocations: 258.6 kB / 456.2 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000532/0.3414, allocations: 339.8 kB / 456.5 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007749/0.3491, allocations: 4.543 MB / 461.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-05/0.3492, allocations: 7.938 kB / 461.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003229/0.3495, allocations: 139.9 kB / 461.2 MB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/0.3497, allocations: 154.7 kB / 461.4 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006521/0.3562, allocations: 3.918 MB / 465.3 MB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02137/0.3776, allocations: 13.99 MB / 479.3 MB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007291/0.3849, allocations: 6.978 MB / 486.3 MB, free: 1.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002924/0.3879, allocations: 1.724 MB / 488 MB, free: 120 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006846/0.3948, allocations: 4.245 MB / 492.2 MB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.3948, allocations: 47.88 kB / 492.3 MB, free: 11.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=165): time 3.216e-06/0.3948, allocations: 0 / 492.3 MB, free: 11.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=185): time 0.01616/0.411, allocations: 7.773 MB / 0.4883 GB, free: 3.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.4111, allocations: 77.41 kB / 0.4884 GB, free: 3.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003645/0.4147, allocations: 2.62 MB / 0.491 GB, free: 1.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.4149, allocations: 57.7 kB / 0.491 GB, free: 1.023 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001243/0.4161, allocations: 1.611 MB / 0.4926 GB, free: 15.39 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000458/0.4166, allocations: 0.6276 MB / 0.4932 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005426/0.4172, allocations: 331.3 kB / 0.4935 GB, free: 14.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.783e-05/0.4173, allocations: 309 kB / 0.4938 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.4188, allocations: 0.9097 MB / 0.4947 GB, free: 13.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/0.4205, allocations: 1.298 MB / 0.496 GB, free: 11.76 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003449/0.424, allocations: 2.355 MB / 0.4983 GB, free: 9.258 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.424, allocations: 7.938 kB / 0.4983 GB, free: 9.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005368/0.4294, allocations: 3.069 MB / 0.5013 GB, free: 6.164 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.4294, allocations: 8 kB / 0.5013 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.4295, allocations: 12 kB / 0.5013 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001506/0.431, allocations: 0.5518 MB / 0.5018 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/0.4327, allocations: 423.4 kB / 0.5022 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009456/0.4422, allocations: 7.606 MB / 0.5097 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.4439, allocations: 83.94 kB / 0.5097 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001654/0.444, allocations: 80.05 kB / 0.5098 GB, free: 13.12 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.002036/0.4461, allocations: 1.169 MB / 0.511 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005101/0.4466, allocations: 256.8 kB / 0.5112 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005232/0.4518, allocations: 2.882 MB / 0.514 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-05/0.4519, allocations: 20 kB / 0.514 GB, free: 8.766 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.4519, allocations: 8 kB / 0.514 GB, free: 8.758 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.4519, allocations: 19.95 kB / 0.5141 GB, free: 8.738 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/0.462, allocations: 6.325 MB / 0.5202 GB, free: 2.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.462, allocations: 0 / 0.5202 GB, free: 2.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/0.4634, allocations: 279.6 kB / 0.5205 GB, free: 2.047 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/0.465, allocations: 0.6276 MB / 0.5211 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001285/0.4651, allocations: 43.97 kB / 0.5212 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.4768, allocations: 11.44 MB / 0.5323 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4769, allocations: 7.969 kB / 0.5323 GB, free: 5.367 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007223/0.4841, allocations: 4.14 MB / 0.5364 GB, free: 1.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.4852, allocations: 0.5408 MB / 0.5369 GB, free: 0.6172 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003241/0.4855, allocations: 43.94 kB / 0.537 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001157/0.4867, allocations: 87.86 kB / 0.537 GB, free: 500 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003378/0.487, allocations: 137.7 kB / 0.5372 GB, free: 364 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/0.4871, allocations: 59.97 kB / 0.5372 GB, free: 304 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.2113/0.6985, allocations: 1.838 MB / 0.539 GB, free: 128.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.6985, allocations: 0 / 0.539 GB, free: 128.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002876/0.7014, allocations: 0.6888 MB / 0.5397 GB, free: 128.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.001041/0.7025, allocations: 445.3 kB / 0.5401 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00448/0.707, allocations: 2.831 MB / 0.5429 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.707, allocations: 3.969 kB / 0.5429 GB, free: 128.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002406/0.7094, allocations: 1.931 MB / 0.5448 GB, free: 127.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/0.7118, allocations: 0.5908 MB / 0.5453 GB, free: 127 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008738/0.7205, allocations: 7.042 MB / 0.5522 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001723/0.7223, allocations: 2.625 MB / 0.5548 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00145/0.7237, allocations: 0.5057 MB / 0.5553 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004827/0.7242, allocations: 173.6 kB / 0.5554 GB, free: 122 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7242, allocations: 7.938 kB / 0.5555 GB, free: 122 MB / 462.1 MB Notification: Performance of Templates: time 0.04916/0.7734, allocations: 35.7 MB / 0.5903 GB, free: 87.58 MB / 462.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