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.001215/0.001216, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001431/0.001431, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3377, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.01718/0.355, allocations: 16.61 MB / 425.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01098/0.366, allocations: 4.696 MB / 430.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003801/0.3698, allocations: 131.6 kB / 430.2 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01544/0.3853, allocations: 7.167 MB / 437.4 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006757/0.3921, allocations: 1.943 MB / 439.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004065/0.3962, allocations: 1.548 MB / 440.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0121/0.4083, allocations: 9.497 MB / 450.4 MB, free: 7.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03146/0.4398, allocations: 20.84 MB / 471.2 MB, free: 2.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007773/0.4476, allocations: 5.253 MB / 476.5 MB, free: 13.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009363/0.457, allocations: 5.911 MB / 482.4 MB, free: 7.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003447/0.4605, allocations: 1.359 MB / 483.7 MB, free: 6.246 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00538/0.4659, allocations: 1.668 MB / 485.4 MB, free: 4.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004089/0.47, allocations: 2.79 MB / 488.2 MB, free: 1.781 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009532/0.4795, allocations: 5.362 MB / 493.5 MB, free: 12.4 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02189/0.5014, allocations: 18.35 MB / 0.4999 GB, free: 9.996 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.5015, allocations: 4 kB / 0.4999 GB, free: 9.992 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.799e-06/0.5015, allocations: 4 kB / 0.4999 GB, free: 9.988 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005562/0.5021, allocations: 3.938 kB / 0.4999 GB, free: 9.984 MB / 430.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.03586/0.5379, allocations: 12.13 MB / 0.5118 GB, free: 13.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.538, allocations: 8.031 kB / 0.5118 GB, free: 13.76 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00465/0.5427, allocations: 1.517 MB / 0.5132 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03443/0.5771, allocations: 6.268 MB / 0.5194 GB, free: 5.949 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/0.589, allocations: 5.819 MB / 0.525 GB, free: 68 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007173/0.5898, allocations: 0.6704 MB / 0.5257 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003247/0.593, allocations: 0.8748 MB / 0.5266 GB, free: 14.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4262/1.019, allocations: 14.71 MB / 0.5409 GB, free: 111.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000482/1.02, allocations: 7.219 kB / 0.5409 GB, free: 111.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002881/1.023, allocations: 377 kB / 0.5413 GB, free: 111.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009848/1.024, allocations: 499.7 kB / 0.5418 GB, free: 111.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02582/1.049, allocations: 13.53 MB / 0.555 GB, free: 107.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07061/1.12, allocations: 44.58 MB / 0.5985 GB, free: 66.09 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009983/1.13, allocations: 11.65 MB / 0.6099 GB, free: 53.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00419/1.134, allocations: 3.163 MB / 0.613 GB, free: 50.2 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004514/1.135, allocations: 261.1 kB / 0.6132 GB, free: 49.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.59e-05/1.135, allocations: 82.5 kB / 0.6133 GB, free: 49.84 MB / 462.1 MB Notification: Performance of pre-optimization done (n=409): time 7.654e-06/1.135, allocations: 0 / 0.6133 GB, free: 49.84 MB / 462.1 MB Notification: Performance of matching and sorting (n=409): time 0.01847/1.153, allocations: 9.565 MB / 0.6227 GB, free: 40.24 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.514e-05/1.154, allocations: 121.1 kB / 0.6228 GB, free: 40.11 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004461/1.158, allocations: 3.152 MB / 0.6258 GB, free: 36.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003381/1.158, allocations: 97.64 kB / 0.6259 GB, free: 36.83 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001923/1.16, allocations: 3.698 MB / 0.6296 GB, free: 33.11 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/1.162, allocations: 1.388 MB / 0.6309 GB, free: 31.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001566/1.163, allocations: 1.132 MB / 0.632 GB, free: 30.59 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.161e-05/1.163, allocations: 309.1 kB / 0.6323 GB, free: 30.28 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003325/1.167, allocations: 2.83 MB / 0.6351 GB, free: 27.45 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004159/1.171, allocations: 4.9 MB / 0.6399 GB, free: 21.61 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008202/1.179, allocations: 8.259 MB / 0.6479 GB, free: 12.41 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-05/1.179, allocations: 16 kB / 0.6479 GB, free: 12.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=743) (initialization): time 0.01292/1.192, allocations: 9.108 MB / 0.6568 GB, free: 3.273 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.835e-05/1.192, allocations: 32 kB / 0.6569 GB, free: 3.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001222/1.192, allocations: 68 kB / 0.6569 GB, free: 3.176 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003003/1.195, allocations: 1.146 MB / 0.658 GB, free: 2.023 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004255/1.199, allocations: 1.291 MB / 0.6593 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/1.215, allocations: 10.82 MB / 0.6699 GB, free: 5.645 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005059/1.22, allocations: 0.7355 MB / 0.6706 GB, free: 4.902 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009339/1.221, allocations: 280 kB / 0.6709 GB, free: 4.629 MB / 478.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.006737/1.227, allocations: 3.42 MB / 0.6742 GB, free: 1.195 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009219/1.228, allocations: 347.6 kB / 0.6745 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0114/1.24, allocations: 6.901 MB / 0.6813 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008747/1.248, allocations: 5.737 MB / 0.6869 GB, free: 4.172 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.93e-05/1.249, allocations: 12 kB / 0.6869 GB, free: 4.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-05/1.249, allocations: 19.92 kB / 0.6869 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02595/1.275, allocations: 15.23 MB / 0.7018 GB, free: 4.746 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.291e-05/1.275, allocations: 16.25 kB / 0.7018 GB, free: 4.73 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00296/1.278, allocations: 0.7879 MB / 0.7026 GB, free: 3.941 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00305/1.281, allocations: 1.059 MB / 0.7036 GB, free: 2.875 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003632/1.281, allocations: 108 kB / 0.7037 GB, free: 2.77 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/1.295, allocations: 10.58 MB / 0.714 GB, free: 7.914 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.411e-05/1.295, allocations: 23.88 kB / 0.7141 GB, free: 7.891 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01665/1.312, allocations: 10.68 MB / 0.7245 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002394/1.314, allocations: 0.9835 MB / 0.7254 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006906/1.315, allocations: 95.98 kB / 0.7255 GB, free: 11.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002143/1.317, allocations: 275.6 kB / 0.7258 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006213/1.318, allocations: 343.2 kB / 0.7261 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002595/1.318, allocations: 144 kB / 0.7263 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003024/1.321, allocations: 2.121 MB / 0.7283 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/1.321, allocations: 0 / 0.7283 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00597/1.327, allocations: 2.227 MB / 0.7305 GB, free: 6.762 MB / 0.5294 GB 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.01594/1.343, allocations: 11.43 MB / 0.7417 GB, free: 11.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01226/1.355, allocations: 7.451 MB / 0.7489 GB, free: 3.633 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/1.355, allocations: 4 kB / 0.7489 GB, free: 3.629 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.215/1.57, allocations: 3.643 MB / 0.7525 GB, free: 197.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004731/1.575, allocations: 0.8038 MB / 0.7533 GB, free: 197.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06866/1.644, allocations: 51.64 MB / 0.8037 GB, free: 163.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004994/1.649, allocations: 5.934 MB / 0.8095 GB, free: 157.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004641/1.653, allocations: 2.154 MB / 0.8116 GB, free: 154.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003217/1.657, allocations: 3.006 MB / 0.8146 GB, free: 151.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.723e-06/1.657, allocations: 3.938 kB / 0.8146 GB, free: 151.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1463/1.803, allocations: 114.3 MB / 0.9262 GB, free: 38.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.67/19.47, allocations: 15.88 kB / 0.9262 GB, free: 38.05 MB / 0.545 GB (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