Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 109.8 kB / 17.74 MB, free: 5.184 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.001158/0.001158, allocations: 193.6 kB / 18.67 MB, free: 4.262 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.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 43.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3702, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.0115/0.3818, allocations: 7.257 MB / 408.7 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005958/0.3878, allocations: 2.176 MB / 410.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.3894, allocations: 51.81 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001482/0.3909, allocations: 448.9 kB / 411.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003679/0.3946, allocations: 0.8858 MB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.3958, allocations: 361.5 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005175/0.401, allocations: 3.149 MB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004602/0.4057, allocations: 2.888 MB / 418.6 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002799/0.4085, allocations: 1.421 MB / 420 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003178/0.4117, allocations: 1.685 MB / 421.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007584/0.4125, allocations: 360 kB / 422.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.4139, allocations: 491.8 kB / 422.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001028/0.4149, allocations: 0.8998 MB / 423.4 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002582/0.4175, allocations: 1.606 MB / 425.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006731/0.4243, allocations: 4.673 MB / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4243, allocations: 0 / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4243, allocations: 0 / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001324/0.4245, allocations: 0 / 429.7 MB, free: 12.41 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.01459/0.4391, allocations: 3.625 MB / 433.4 MB, free: 8.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.976e-05/0.4392, allocations: 8.031 kB / 433.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006586/0.4458, allocations: 0.696 MB / 434.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006205/0.452, allocations: 1.788 MB / 435.8 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002781/0.4523, allocations: 201.7 kB / 436 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00113/0.4535, allocations: 268 kB / 436.3 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01049/0.464, allocations: 3.614 MB / 439.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-05/0.4641, allocations: 0 / 439.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004048/0.4645, allocations: 108 kB / 440 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/0.4647, allocations: 105.4 kB / 440.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008571/0.4733, allocations: 3.097 MB / 443.2 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02701/0.5004, allocations: 10.22 MB / 453.4 MB, free: 4.152 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007664/0.5081, allocations: 4.575 MB / 458 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002385/0.5105, allocations: 0.9394 MB / 459 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006584/0.5171, allocations: 2.401 MB / 461.4 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.657e-05/0.5172, allocations: 51.38 kB / 461.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=104): time 4.057e-06/0.5172, allocations: 0 / 461.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=104): time 0.01018/0.5274, allocations: 2.653 MB / 464.1 MB, free: 8.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.637e-05/0.5276, allocations: 89.98 kB / 464.2 MB, free: 8.621 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003234/0.5308, allocations: 1.374 MB / 465.5 MB, free: 7.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.531, allocations: 45.7 kB / 465.6 MB, free: 7.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.5322, allocations: 1.164 MB / 466.7 MB, free: 6.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004567/0.5327, allocations: 354.8 kB / 467.1 MB, free: 5.652 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000508/0.5332, allocations: 218.8 kB / 467.3 MB, free: 5.434 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003332/0.5336, allocations: 349.9 kB / 467.6 MB, free: 5.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001475/0.5351, allocations: 0.5647 MB / 468.2 MB, free: 4.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001737/0.5368, allocations: 0.8413 MB / 469 MB, free: 3.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003335/0.5402, allocations: 1.465 MB / 470.5 MB, free: 1.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.846e-06/0.5402, allocations: 0 / 470.5 MB, free: 1.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.005193/0.5454, allocations: 1.964 MB / 472.5 MB, free: 8 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.5455, allocations: 12.05 kB / 472.5 MB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/0.5455, allocations: 8.156 kB / 472.5 MB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.547, allocations: 405.2 kB / 472.9 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.5484, allocations: 211.7 kB / 473.1 MB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/0.56, allocations: 6.529 MB / 479.6 MB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/0.5622, allocations: 146.6 kB / 479.8 MB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001834/0.5624, allocations: 44 kB / 479.8 MB, free: 8.391 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (110): * Single equations (assignments): 108 * Array equations: 0 * 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 {(2,19,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002503/0.5649, allocations: 0.8682 MB / 480.7 MB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006128/0.5655, allocations: 134.4 kB / 480.8 MB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004918/0.5705, allocations: 1.652 MB / 482.5 MB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/0.5705, allocations: 12 kB / 482.5 MB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/0.5705, allocations: 4 kB / 482.5 MB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.988e-05/0.5706, allocations: 11.97 kB / 482.5 MB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01071/0.5813, allocations: 3.918 MB / 486.4 MB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/0.5814, allocations: 4 kB / 486.4 MB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009833/0.5823, allocations: 123.9 kB / 486.5 MB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001585/0.584, allocations: 401.3 kB / 486.9 MB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.5841, allocations: 31.98 kB / 487 MB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009463/0.5936, allocations: 6.503 MB / 493.5 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.5936, allocations: 4 kB / 493.5 MB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004204/0.5978, allocations: 2.488 MB / 495.9 MB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006771/0.5986, allocations: 231.3 kB / 496.2 MB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.5987, allocations: 27.98 kB / 496.2 MB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008044/0.5995, allocations: 91.91 kB / 496.3 MB, free: 7.438 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/0.5999, allocations: 96.67 kB / 496.4 MB, free: 7.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-05/0.5999, allocations: 31.94 kB / 496.4 MB, free: 7.312 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001463/0.6014, allocations: 0.963 MB / 497.4 MB, free: 6.344 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6014, allocations: 4 kB / 497.4 MB, free: 6.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002198/0.6036, allocations: 0.6726 MB / 498.1 MB, free: 5.664 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,loss_m.Phi.re,loss_m.Phi.im) * 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 (64): * Single equations (assignments): 62 * Array equations: 0 * 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 {(2,21,100.0%), (2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003963/0.604, allocations: 151 kB / 498.2 MB, free: 5.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00325/0.6073, allocations: 1.786 MB / 500 MB, free: 3.699 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/0.6073, allocations: 8.188 kB / 500 MB, free: 3.691 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.6093, allocations: 1.125 MB / 0.4894 GB, free: 2.543 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/0.6112, allocations: 315.3 kB / 0.4897 GB, free: 2.238 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008055/0.6192, allocations: 4.501 MB / 0.4941 GB, free: 13.67 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001809/0.6211, allocations: 2.124 MB / 0.4961 GB, free: 11.51 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004194/0.6215, allocations: 99.34 kB / 0.4962 GB, free: 11.41 MB / 430.1 MB Notification: Performance of SimCode: time 1.803e-06/0.6215, allocations: 4 kB / 0.4962 GB, free: 11.41 MB / 430.1 MB Notification: Performance of Templates: time 0.2622/0.8838, allocations: 52.77 MB / 0.5478 GB, free: 131.4 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches