Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009282/0.0009283, allocations: 200.9 kB / 17.38 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.6 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008522/0.0008521, allocations: 101.4 kB / 296.8 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002465, allocations: 8 kB / 356.8 MB, free: 10.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2225/0.2228, allocations: 51.28 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.005099/0.228, allocations: 6.814 MB / 414.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003327/0.2313, allocations: 2.26 MB / 417.1 MB, free: 18.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000599/0.2319, allocations: 47.81 kB / 417.2 MB, free: 18.52 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005803/0.2325, allocations: 318 kB / 417.5 MB, free: 18.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001444/0.234, allocations: 0.7269 MB / 418.2 MB, free: 17.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005897/0.2346, allocations: 280.2 kB / 418.5 MB, free: 17.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002465/0.2371, allocations: 3.266 MB / 421.7 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001936/0.239, allocations: 2.416 MB / 424.2 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009862/0.24, allocations: 1.012 MB / 425.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001048/0.2411, allocations: 1.323 MB / 426.5 MB, free: 9.105 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.2413, allocations: 152 kB / 426.6 MB, free: 8.957 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005555/0.2418, allocations: 279.9 kB / 426.9 MB, free: 8.684 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003501/0.2422, allocations: 0.6422 MB / 427.6 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008568/0.2431, allocations: 1.281 MB / 428.8 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.245, allocations: 3.745 MB / 432.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2451, allocations: 0 / 432.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2451, allocations: 0 / 432.6 MB, free: 2.992 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.724e-05/0.2451, allocations: 0 / 432.6 MB, free: 2.992 MB / 298.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.005378/0.2505, allocations: 3.142 MB / 435.7 MB, free: 15.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2505, allocations: 12.03 kB / 435.7 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003527/0.2541, allocations: 0.7546 MB / 436.5 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002552/0.2566, allocations: 1.749 MB / 438.2 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.2568, allocations: 201.7 kB / 438.4 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003372/0.2571, allocations: 272 kB / 438.7 MB, free: 12.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005516/0.2627, allocations: 3.599 MB / 442.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-05/0.2627, allocations: 0 / 442.3 MB, free: 9.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002339/0.263, allocations: 112 kB / 442.4 MB, free: 8.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.059e-05/0.2631, allocations: 105.4 kB / 442.5 MB, free: 8.875 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004816/0.2679, allocations: 3.105 MB / 445.6 MB, free: 5.758 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.2823, allocations: 10.41 MB / 456 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004309/0.2867, allocations: 4.56 MB / 460.6 MB, free: 5.789 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.288, allocations: 0.9613 MB / 461.5 MB, free: 4.828 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003678/0.2917, allocations: 2.662 MB / 464.2 MB, free: 2.023 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.2917, allocations: 43.44 kB / 464.3 MB, free: 1.969 MB / 330.7 MB Notification: Performance of pre-optimization done (n=104): time 2.465e-06/0.2917, allocations: 0 / 464.3 MB, free: 1.969 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.005721/0.2975, allocations: 2.707 MB / 467 MB, free: 15.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.2975, allocations: 89.98 kB / 467 MB, free: 15.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001677/0.2992, allocations: 1.379 MB / 468.4 MB, free: 13.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.327e-05/0.2993, allocations: 41.7 kB / 468.5 MB, free: 13.67 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006798/0.3, allocations: 1.168 MB / 469.6 MB, free: 12.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/0.3002, allocations: 358.8 kB / 470 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.092e-05/0.3003, allocations: 24 kB / 470 MB, free: 12.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.3004, allocations: 357.9 kB / 470.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008777/0.3013, allocations: 0.5725 MB / 470.9 MB, free: 11.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001028/0.3023, allocations: 0.8567 MB / 471.8 MB, free: 10.21 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001978/0.3043, allocations: 1.473 MB / 473.3 MB, free: 8.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3044, allocations: 0 / 473.3 MB, free: 8.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003026/0.3074, allocations: 1.984 MB / 475.2 MB, free: 6.621 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3074, allocations: 8 kB / 475.3 MB, free: 6.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.3074, allocations: 8 kB / 475.3 MB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008873/0.3083, allocations: 402.3 kB / 475.7 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007801/0.3091, allocations: 223.7 kB / 475.9 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006515/0.3156, allocations: 5.983 MB / 481.9 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008406/0.3165, allocations: 150.7 kB / 482 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.34e-05/0.3166, allocations: 44 kB / 482 MB, free: 15.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 19,(2,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001393/0.318, allocations: 0.8721 MB / 482.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.3182, allocations: 142.2 kB / 483.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/0.321, allocations: 1.667 MB / 484.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.321, allocations: 8 kB / 484.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.3211, allocations: 8 kB / 484.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.3211, allocations: 3.984 kB / 484.7 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00604/0.3271, allocations: 3.945 MB / 488.7 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.3272, allocations: 7.984 kB / 488.7 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005394/0.3277, allocations: 131.9 kB / 488.8 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008508/0.3286, allocations: 393.6 kB / 489.2 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.955e-05/0.3286, allocations: 27.98 kB / 489.2 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006368/0.335, allocations: 5.964 MB / 495.2 MB, free: 2.004 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.335, allocations: 3.938 kB / 495.2 MB, free: 2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003688/0.3387, allocations: 2.512 MB / 497.7 MB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003339/0.3391, allocations: 243.3 kB / 498 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.3392, allocations: 24 kB / 498 MB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007404/0.34, allocations: 95.91 kB / 498.1 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.3402, allocations: 96.67 kB / 498.2 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.814e-05/0.3403, allocations: 31.98 kB / 498.2 MB, free: 14.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00128/0.3416, allocations: 0.9595 MB / 499.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3416, allocations: 0 / 499.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001973/0.3436, allocations: 0.6765 MB / 499.8 MB, free: 13.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 21,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003543/0.3439, allocations: 158.2 kB / 500 MB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.3469, allocations: 1.801 MB / 0.49 GB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3469, allocations: 0 / 0.49 GB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001681/0.3486, allocations: 1.148 MB / 0.4912 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.3502, allocations: 292.7 kB / 0.4914 GB, free: 9.844 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007556/0.3578, allocations: 5.512 MB / 0.4968 GB, free: 4.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001648/0.3594, allocations: 2.128 MB / 0.4989 GB, free: 2.109 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003276/0.3598, allocations: 99.41 kB / 0.499 GB, free: 2.012 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.3598, allocations: 0 / 0.499 GB, free: 2.012 MB / 378.7 MB Notification: Performance of Templates: time 0.2227/0.5825, allocations: 52.4 MB / 0.5502 GB, free: 48.88 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches