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.001086/0.001086, allocations: 113 kB / 17.68 MB, free: 5.473 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.001134/0.001134, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.289/1.289, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 50.86 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09746, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01394/0.1114, allocations: 13.62 MB / 365.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007855/0.1193, allocations: 4.973 MB / 370.1 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.1209, allocations: 75.75 kB / 370.2 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1472/0.2682, allocations: 1.037 MB / 371.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00399/0.2722, allocations: 1.393 MB / 372.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.2742, allocations: 0.9671 MB / 373.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004314/0.2785, allocations: 4.3 MB / 377.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003362/0.2819, allocations: 3.36 MB / 381.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00282/0.2847, allocations: 2.007 MB / 383.2 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003011/0.2877, allocations: 2.279 MB / 385.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007302/0.2885, allocations: 0.5342 MB / 386.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001799/0.2903, allocations: 0.9162 MB / 387 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009987/0.2913, allocations: 1.366 MB / 388.3 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002175/0.2935, allocations: 2.347 MB / 390.7 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005551/0.2991, allocations: 7.355 MB / 398 MB, free: 1.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.2991, allocations: 4 kB / 398 MB, free: 1.461 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.2991, allocations: 3.406 kB / 398.1 MB, free: 1.461 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001048/0.2992, allocations: 0 / 398.1 MB, free: 1.461 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.01074/0.31, allocations: 4.979 MB / 403 MB, free: 13.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.31, allocations: 8.031 kB / 403 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004188/0.3142, allocations: 0.8806 MB / 403.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00502/0.3192, allocations: 2.774 MB / 406.7 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.3194, allocations: 250.7 kB / 406.9 MB, free: 9.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004951/0.3199, allocations: 335.1 kB / 407.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007149/0.3271, allocations: 4.554 MB / 411.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.465e-05/0.3271, allocations: 0 / 411.8 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003058/0.3275, allocations: 132 kB / 411.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001478/0.3276, allocations: 154.7 kB / 412.1 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006371/0.334, allocations: 3.918 MB / 416 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02014/0.3541, allocations: 13.99 MB / 430 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007361/0.3615, allocations: 6.977 MB / 437 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002702/0.3643, allocations: 1.688 MB / 438.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007448/0.3717, allocations: 4.237 MB / 442.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.3718, allocations: 59.8 kB / 443 MB, free: 4.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.406e-06/0.3718, allocations: 0 / 443 MB, free: 4.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01559/0.3874, allocations: 7.762 MB / 450.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.3875, allocations: 69.41 kB / 450.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003308/0.3908, allocations: 2.627 MB / 453.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.3909, allocations: 53.7 kB / 453.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.392, allocations: 1.618 MB / 455.1 MB, free: 8.469 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004276/0.3924, allocations: 0.6249 MB / 455.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005278/0.3929, allocations: 335.3 kB / 456.1 MB, free: 7.516 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/0.393, allocations: 305.1 kB / 456.3 MB, free: 7.215 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.3945, allocations: 0.9058 MB / 457.3 MB, free: 6.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001745/0.3963, allocations: 1.31 MB / 458.6 MB, free: 4.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003327/0.3996, allocations: 2.351 MB / 460.9 MB, free: 2.355 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.3996, allocations: 4 kB / 460.9 MB, free: 2.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00506/0.4047, allocations: 3.069 MB / 464 MB, free: 15.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.4047, allocations: 12 kB / 464 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.4048, allocations: 15.98 kB / 464 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.4062, allocations: 0.5534 MB / 464.6 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001709/0.4079, allocations: 427.3 kB / 465 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009018/0.4169, allocations: 7.594 MB / 472.6 MB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001536/0.4185, allocations: 84 kB / 472.7 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.4186, allocations: 83.98 kB / 472.7 MB, free: 6.238 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.001862/0.4205, allocations: 1.161 MB / 473.9 MB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004218/0.4209, allocations: 256.8 kB / 474.2 MB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004964/0.4259, allocations: 2.885 MB / 477 MB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-05/0.426, allocations: 20 kB / 477.1 MB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.426, allocations: 8 kB / 477.1 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.976e-05/0.426, allocations: 7.969 kB / 477.1 MB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.4365, allocations: 6.324 MB / 483.4 MB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.4365, allocations: 3.938 kB / 483.4 MB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.4379, allocations: 283.7 kB / 483.7 MB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001593/0.4395, allocations: 0.6129 MB / 484.3 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001295/0.4396, allocations: 55.91 kB / 484.3 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/0.4515, allocations: 11.44 MB / 495.8 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4515, allocations: 0 / 495.8 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007535/0.459, allocations: 4.154 MB / 499.9 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/0.4608, allocations: 0.5369 MB / 0.4888 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004322/0.4612, allocations: 40 kB / 0.4888 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/0.4624, allocations: 91.86 kB / 0.4889 GB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003575/0.4628, allocations: 133.7 kB / 0.489 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/0.4629, allocations: 60.03 kB / 0.4891 GB, free: 9.477 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00293/0.4659, allocations: 1.839 MB / 0.4909 GB, free: 7.625 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4659, allocations: 4 kB / 0.4909 GB, free: 7.621 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003184/0.4691, allocations: 0.6915 MB / 0.4915 GB, free: 6.93 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.001333/0.4705, allocations: 445.7 kB / 0.492 GB, free: 6.633 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005246/0.4757, allocations: 2.831 MB / 0.4947 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.4758, allocations: 0 / 0.4947 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003037/0.4788, allocations: 1.93 MB / 0.4966 GB, free: 1.801 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002864/0.4817, allocations: 0.5889 MB / 0.4972 GB, free: 1.215 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.4929, allocations: 7.049 MB / 0.5041 GB, free: 10.14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002283/0.4952, allocations: 2.624 MB / 0.5066 GB, free: 7.492 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001657/0.4969, allocations: 0.5005 MB / 0.5071 GB, free: 6.988 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004798/0.4974, allocations: 175.4 kB / 0.5073 GB, free: 6.816 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4974, allocations: 0 / 0.5073 GB, free: 6.816 MB / 430.1 MB Notification: Performance of Templates: time 0.205/0.7023, allocations: 34.93 MB / 0.5414 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 -s gbode -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/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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches