Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001856/0.001856, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009309/0.0009308, allocations: 105.9 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008957/0.0008959, allocations: 43.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1826/0.1835, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.006321/0.1899, allocations: 7.78 MB / 414.8 MB, free: 20 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003111/0.193, allocations: 2.419 MB / 417.3 MB, free: 17.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000548/0.1936, allocations: 55.75 kB / 417.3 MB, free: 17.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006543/0.1943, allocations: 378 kB / 417.7 MB, free: 17.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.1957, allocations: 0.7816 MB / 418.5 MB, free: 16.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.1963, allocations: 351.7 kB / 418.8 MB, free: 16.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002357/0.1987, allocations: 3.574 MB / 422.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.2005, allocations: 2.423 MB / 424.8 MB, free: 9.945 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.2017, allocations: 1.222 MB / 426 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001238/0.2029, allocations: 1.626 MB / 427.6 MB, free: 7.086 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002584/0.2032, allocations: 240 kB / 427.9 MB, free: 6.852 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006288/0.2038, allocations: 367.9 kB / 428.2 MB, free: 6.492 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004259/0.2043, allocations: 0.7748 MB / 429 MB, free: 5.715 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.2053, allocations: 1.465 MB / 430.5 MB, free: 4.242 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002421/0.2078, allocations: 4.534 MB / 435 MB, free: 15.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2078, allocations: 0 / 435 MB, free: 15.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2078, allocations: 0 / 435 MB, free: 15.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.314e-05/0.2078, allocations: 4 kB / 435 MB, free: 15.69 MB / 314.7 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.006995/0.2148, allocations: 3.637 MB / 438.7 MB, free: 11.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.2149, allocations: 8.031 kB / 438.7 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003638/0.2185, allocations: 0.7467 MB / 439.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/0.2215, allocations: 1.741 MB / 441.2 MB, free: 9.434 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.2216, allocations: 197.7 kB / 441.3 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003365/0.2219, allocations: 264.1 kB / 441.6 MB, free: 8.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005134/0.2271, allocations: 3.614 MB / 445.2 MB, free: 5.312 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.065e-05/0.2271, allocations: 0 / 445.2 MB, free: 5.312 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.2274, allocations: 108 kB / 445.3 MB, free: 5.207 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-05/0.2275, allocations: 113.3 kB / 445.4 MB, free: 5.094 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004579/0.232, allocations: 3.101 MB / 448.5 MB, free: 1.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.2461, allocations: 10.33 MB / 458.9 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004444/0.2505, allocations: 4.57 MB / 463.4 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.2518, allocations: 0.9493 MB / 464.4 MB, free: 1.133 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003785/0.2556, allocations: 2.647 MB / 467 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.2557, allocations: 51.38 kB / 467.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 2.766e-06/0.2557, allocations: 4 kB / 467.1 MB, free: 14.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=104): time 0.006168/0.2619, allocations: 2.649 MB / 469.7 MB, free: 11.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.262, allocations: 89.98 kB / 469.8 MB, free: 11.47 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001776/0.2637, allocations: 1.383 MB / 471.2 MB, free: 10.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/0.2638, allocations: 49.7 kB / 471.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000667/0.2645, allocations: 1.16 MB / 472.4 MB, free: 8.848 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.2647, allocations: 366.8 kB / 472.8 MB, free: 8.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003191/0.2651, allocations: 218.8 kB / 473 MB, free: 8.266 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.2652, allocations: 353.9 kB / 473.3 MB, free: 7.914 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008445/0.266, allocations: 0.5608 MB / 473.9 MB, free: 7.352 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009911/0.267, allocations: 0.8452 MB / 474.7 MB, free: 6.395 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00185/0.2689, allocations: 1.457 MB / 476.2 MB, free: 4.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.2689, allocations: 0 / 476.2 MB, free: 4.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003048/0.272, allocations: 1.96 MB / 478.2 MB, free: 2.844 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.272, allocations: 12 kB / 478.2 MB, free: 2.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.272, allocations: 8 kB / 478.2 MB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009357/0.273, allocations: 398.3 kB / 478.6 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007653/0.2738, allocations: 219.7 kB / 478.8 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006422/0.2802, allocations: 5.982 MB / 484.8 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009204/0.2811, allocations: 142.8 kB / 484.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.262e-05/0.2812, allocations: 51.98 kB / 484.9 MB, free: 11.78 MB / 362.7 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.001238/0.2825, allocations: 0.8642 MB / 485.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002174/0.2827, allocations: 150.2 kB / 486 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/0.2855, allocations: 1.644 MB / 487.6 MB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.2855, allocations: 15.98 kB / 487.6 MB, free: 9.078 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.2855, allocations: 8 kB / 487.6 MB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.2855, allocations: 3.984 kB / 487.6 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005834/0.2914, allocations: 3.914 MB / 491.5 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.2914, allocations: 4.031 kB / 491.5 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005324/0.2919, allocations: 131.8 kB / 491.7 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008899/0.2928, allocations: 397.3 kB / 492.1 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.255e-05/0.2929, allocations: 27.98 kB / 492.1 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006296/0.2992, allocations: 5.971 MB / 498.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.2993, allocations: 7.938 kB / 498.1 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1728/0.4721, allocations: 14.58 MB / 0.5006 GB, free: 88.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003914/0.4725, allocations: 242.1 kB / 0.5009 GB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.4727, allocations: 28.16 kB / 0.5009 GB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008206/0.4735, allocations: 87.72 kB / 0.501 GB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002578/0.4738, allocations: 92.41 kB / 0.5011 GB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/0.4738, allocations: 33.97 kB / 0.5011 GB, free: 88.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00128/0.4751, allocations: 0.9736 MB / 0.502 GB, free: 88.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4751, allocations: 1.188 kB / 0.5021 GB, free: 88.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001945/0.4771, allocations: 0.8358 MB / 0.5029 GB, free: 88.31 MB / 378.7 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.0002497/0.4774, allocations: 148.9 kB / 0.503 GB, free: 88.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.4799, allocations: 1.774 MB / 0.5047 GB, free: 87.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4799, allocations: 9.812 kB / 0.5048 GB, free: 87.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.4815, allocations: 1.122 MB / 0.5058 GB, free: 87.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.4828, allocations: 293.6 kB / 0.5061 GB, free: 87.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007451/0.4903, allocations: 6.848 MB / 0.5128 GB, free: 84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.4917, allocations: 2.215 MB / 0.515 GB, free: 82.97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009198/0.4926, allocations: 341.5 kB / 0.5153 GB, free: 82.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.4928, allocations: 83.98 kB / 0.5154 GB, free: 82.91 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4928, allocations: 0 / 0.5154 GB, free: 82.91 MB / 378.7 MB Notification: Performance of Templates: time 0.02779/0.5206, allocations: 22.88 MB / 0.5377 GB, free: 62.63 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches