Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001085, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.001201, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001167, allocations: 59.36 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09713/0.09831, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.1847/0.2831, allocations: 16.59 MB / 374.2 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00882/0.2919, allocations: 4.709 MB / 378.9 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002873/0.2948, allocations: 133.6 kB / 379 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01303/0.3079, allocations: 7.167 MB / 386.2 MB, free: 6.605 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005523/0.3134, allocations: 1.943 MB / 388.1 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002904/0.3163, allocations: 1.55 MB / 389.7 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00801/0.3244, allocations: 9.439 MB / 399.1 MB, free: 15.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02272/0.3471, allocations: 20.93 MB / 420.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006829/0.354, allocations: 5.229 MB / 425.3 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01034/0.3643, allocations: 5.934 MB / 431.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00468/0.3691, allocations: 1.363 MB / 432.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008338/0.3775, allocations: 1.668 MB / 434.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004439/0.3819, allocations: 2.794 MB / 437 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00773/0.3897, allocations: 5.362 MB / 442.4 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01775/0.4075, allocations: 18.26 MB / 460.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.4075, allocations: 3.938 kB / 460.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4075, allocations: 0 / 460.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004392/0.408, allocations: 0 / 460.7 MB, free: 4.766 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: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.03902/0.447, allocations: 12.18 MB / 472.8 MB, free: 8.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.4471, allocations: 12.03 kB / 472.9 MB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005001/0.4521, allocations: 1.513 MB / 474.4 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03679/0.4889, allocations: 6.213 MB / 480.6 MB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01269/0.5016, allocations: 5.643 MB / 486.2 MB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007666/0.5024, allocations: 0.6743 MB / 486.9 MB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004068/0.5065, allocations: 0.8788 MB / 487.8 MB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03773/0.5443, allocations: 14.72 MB / 0.4907 GB, free: 10.7 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003813/0.5447, allocations: 15.84 kB / 0.4907 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002647/0.5474, allocations: 372 kB / 0.4911 GB, free: 10.32 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005204/0.5479, allocations: 499.3 kB / 0.4916 GB, free: 9.832 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03425/0.5822, allocations: 13.53 MB / 0.5048 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3501/0.9323, allocations: 45.12 MB / 0.5488 GB, free: 114 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009182/0.9415, allocations: 11.64 MB / 0.5602 GB, free: 106.7 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003095/0.9447, allocations: 3.159 MB / 0.5633 GB, free: 105.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002778/0.9449, allocations: 255.9 kB / 0.5635 GB, free: 105.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.715e-05/0.945, allocations: 82.31 kB / 0.5636 GB, free: 105.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=409): time 5.951e-06/0.945, allocations: 0 / 0.5636 GB, free: 105.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=409): time 0.01602/0.961, allocations: 9.572 MB / 0.573 GB, free: 102.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.9611, allocations: 123.8 kB / 0.5731 GB, free: 102 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/0.9646, allocations: 3.154 MB / 0.5762 GB, free: 100.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002921/0.9649, allocations: 92.45 kB / 0.5763 GB, free: 100.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/0.9663, allocations: 3.697 MB / 0.5799 GB, free: 97.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00085/0.9672, allocations: 1.39 MB / 0.5812 GB, free: 96.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001308/0.9685, allocations: 1.128 MB / 0.5823 GB, free: 95.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.9686, allocations: 304.9 kB / 0.5826 GB, free: 95.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00322/0.9718, allocations: 2.838 MB / 0.5854 GB, free: 93.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005518/0.9773, allocations: 4.901 MB / 0.5902 GB, free: 89.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008323/0.9857, allocations: 8.256 MB / 0.5982 GB, free: 83.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.082e-05/0.9858, allocations: 23.12 kB / 0.5983 GB, free: 83.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=743) (initialization): time 0.01317/0.999, allocations: 9.1 MB / 0.6071 GB, free: 74.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.646e-05/0.999, allocations: 32 kB / 0.6072 GB, free: 74.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.736e-05/0.9991, allocations: 68 kB / 0.6072 GB, free: 74.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002887/1.002, allocations: 1.154 MB / 0.6084 GB, free: 73.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004153/1.006, allocations: 1.291 MB / 0.6096 GB, free: 72.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/1.018, allocations: 10.82 MB / 0.6202 GB, free: 61.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003946/1.022, allocations: 0.7355 MB / 0.6209 GB, free: 60.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006373/1.022, allocations: 284 kB / 0.6212 GB, free: 60.24 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 303 * 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 (675): * Single equations (assignments): 671 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,24,100.0%), (5,33,80.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004655/1.027, allocations: 3.424 MB / 0.6245 GB, free: 56.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000657/1.028, allocations: 343.7 kB / 0.6249 GB, free: 56.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/1.038, allocations: 6.921 MB / 0.6316 GB, free: 49.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007606/1.046, allocations: 5.741 MB / 0.6372 GB, free: 43.76 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-05/1.046, allocations: 8 kB / 0.6372 GB, free: 43.75 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.863e-05/1.046, allocations: 27.92 kB / 0.6373 GB, free: 43.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02368/1.069, allocations: 15.33 MB / 0.6522 GB, free: 28.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.092e-05/1.07, allocations: 12 kB / 0.6522 GB, free: 28.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00281/1.072, allocations: 0.7879 MB / 0.653 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002992/1.075, allocations: 1.063 MB / 0.654 GB, free: 26.37 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003883/1.076, allocations: 108 kB / 0.6541 GB, free: 26.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/1.088, allocations: 10.59 MB / 0.6645 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/1.088, allocations: 19.88 kB / 0.6645 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/1.101, allocations: 10.68 MB / 0.6749 GB, free: 4.477 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/1.103, allocations: 0.9912 MB / 0.6759 GB, free: 3.461 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007855/1.104, allocations: 95.98 kB / 0.676 GB, free: 3.367 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002554/1.107, allocations: 279.7 kB / 0.6763 GB, free: 3.094 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007374/1.107, allocations: 343.2 kB / 0.6766 GB, free: 2.758 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003433/1.108, allocations: 136 kB / 0.6767 GB, free: 2.625 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003618/1.111, allocations: 2.132 MB / 0.6788 GB, free: 500 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.111, allocations: 7.938 kB / 0.6788 GB, free: 492 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.00814/1.12, allocations: 2.224 MB / 0.681 GB, free: 14.24 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 58 * Number of states: 2 (sineVoltage_m.plug_p.reference.gamma,sineVoltage_e.plug_p.reference.gamma) * 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 (415): * Single equations (assignments): 411 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,24,91.7%), (5,33,80.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01882/1.138, allocations: 11.41 MB / 0.6921 GB, free: 2.602 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02198/1.16, allocations: 11.29 MB / 0.7032 GB, free: 7.332 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/1.16, allocations: 5.938 kB / 0.7032 GB, free: 7.328 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006812/1.167, allocations: 3.642 MB / 0.7067 GB, free: 3.668 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005109/1.172, allocations: 0.8046 MB / 0.7075 GB, free: 2.879 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2535/1.426, allocations: 57.09 MB / 0.7633 GB, free: 126 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006397/1.432, allocations: 5.938 MB / 0.7691 GB, free: 120 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005029/1.437, allocations: 2.156 MB / 0.7712 GB, free: 117.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003388/1.441, allocations: 3.006 MB / 0.7741 GB, free: 114.8 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/1.441, allocations: 0 / 0.7741 GB, free: 114.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3846/1.825, allocations: 114.8 MB / 0.8862 GB, free: 121.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/16.24, allocations: 11.69 kB / 0.8862 GB, free: 121.7 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches