Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002124/0.002124, allocations: 210.6 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 43.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2996, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.01557/0.3152, allocations: 6.942 MB / 438 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007923/0.3231, allocations: 2.378 MB / 440.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.3244, allocations: 67.56 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.3261, allocations: 468.9 kB / 440.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00391/0.33, allocations: 0.8587 MB / 441.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.3316, allocations: 406.7 kB / 442.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006812/0.3384, allocations: 3.25 MB / 445.4 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003521/0.3419, allocations: 1.58 MB / 447 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003097/0.345, allocations: 1.464 MB / 448.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004336/0.3493, allocations: 1.709 MB / 450.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009903/0.3503, allocations: 360 kB / 450.5 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.3521, allocations: 495.8 kB / 451 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001403/0.3535, allocations: 0.9115 MB / 451.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002615/0.3561, allocations: 1.311 MB / 453.3 MB, free: 352 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008066/0.3642, allocations: 4.734 MB / 458 MB, free: 11.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.3642, allocations: 0 / 458 MB, free: 11.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3642, allocations: 0 / 458 MB, free: 11.59 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.87e-05/0.3643, allocations: 0 / 458 MB, free: 11.59 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.01393/0.3782, allocations: 3.655 MB / 461.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.3783, allocations: 8.031 kB / 461.6 MB, free: 7.883 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001077/0.3794, allocations: 445 kB / 462.1 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007787/0.3871, allocations: 0.7406 MB / 462.8 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006999/0.3941, allocations: 1.791 MB / 464.6 MB, free: 4.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002815/0.3944, allocations: 197.7 kB / 464.8 MB, free: 4.664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008021/0.3952, allocations: 271.9 kB / 465.1 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01162/0.4068, allocations: 3.852 MB / 468.9 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.369e-05/0.4069, allocations: 0 / 468.9 MB, free: 448 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/0.4072, allocations: 112 kB / 469 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.4073, allocations: 105.4 kB / 469.1 MB, free: 228 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005495/0.4128, allocations: 3.097 MB / 472.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.4298, allocations: 9.308 MB / 481.5 MB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004077/0.4339, allocations: 1.754 MB / 483.3 MB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.4354, allocations: 0.8683 MB / 484.2 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004259/0.4397, allocations: 2.004 MB / 486.2 MB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.4397, allocations: 47.44 kB / 486.2 MB, free: 14.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=104): time 2.745e-06/0.4397, allocations: 0 / 486.2 MB, free: 14.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=104): time 0.006226/0.446, allocations: 2.495 MB / 488.7 MB, free: 12.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.446, allocations: 97.91 kB / 488.8 MB, free: 12.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.448, allocations: 1.415 MB / 490.2 MB, free: 10.7 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.725e-05/0.4481, allocations: 45.7 kB / 490.3 MB, free: 10.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009122/0.449, allocations: 1.203 MB / 491.5 MB, free: 9.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003215/0.4493, allocations: 384.8 kB / 491.8 MB, free: 9.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003424/0.4496, allocations: 222.9 kB / 492.1 MB, free: 8.836 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.4498, allocations: 353.9 kB / 492.4 MB, free: 8.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009831/0.4508, allocations: 0.5647 MB / 493 MB, free: 7.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.4521, allocations: 0.8457 MB / 493.8 MB, free: 6.961 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002299/0.4544, allocations: 1.467 MB / 495.3 MB, free: 5.383 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.4544, allocations: 0 / 495.3 MB, free: 5.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003586/0.4579, allocations: 1.954 MB / 497.2 MB, free: 3.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.458, allocations: 8 kB / 497.2 MB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.458, allocations: 8 kB / 497.3 MB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.459, allocations: 406.8 kB / 497.7 MB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008325/0.4598, allocations: 211.7 kB / 497.9 MB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008144/0.468, allocations: 6.254 MB / 0.4923 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/0.469, allocations: 135.1 kB / 0.4924 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.4691, allocations: 51.98 kB / 0.4925 GB, free: 12.13 MB / 414.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.001471/0.4706, allocations: 0.8734 MB / 0.4933 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003122/0.4709, allocations: 147.1 kB / 0.4935 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.474, allocations: 1.632 MB / 0.4951 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.474, allocations: 12 kB / 0.4951 GB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/0.4741, allocations: 8 kB / 0.4951 GB, free: 9.438 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.4741, allocations: 7.922 kB / 0.4951 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006952/0.481, allocations: 3.735 MB / 0.4987 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.481, allocations: 4 kB / 0.4987 GB, free: 5.609 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005854/0.4816, allocations: 127.8 kB / 0.4989 GB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009942/0.4826, allocations: 408.3 kB / 0.4993 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.187e-05/0.4827, allocations: 27.98 kB / 0.4993 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008135/0.4908, allocations: 6.223 MB / 0.5054 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.4908, allocations: 4.031 kB / 0.5054 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004183/0.495, allocations: 2.486 MB / 0.5078 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004281/0.4954, allocations: 174.9 kB / 0.508 GB, free: 11.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001667/0.4956, allocations: 28 kB / 0.508 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007727/0.4964, allocations: 87.84 kB / 0.5081 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.4966, allocations: 104.7 kB / 0.5082 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.269e-05/0.4967, allocations: 35.92 kB / 0.5082 GB, free: 11.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001422/0.4981, allocations: 0.9756 MB / 0.5092 GB, free: 10.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4981, allocations: 0 / 0.5092 GB, free: 10.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001899/0.5, allocations: 0.6891 MB / 0.5098 GB, free: 9.992 MB / 430.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.004595/0.5046, allocations: 3.091 MB / 0.5128 GB, free: 6.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003334/0.5079, allocations: 1.736 MB / 0.5145 GB, free: 5.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.5079, allocations: 0 / 0.5145 GB, free: 5.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001936/0.5099, allocations: 1.09 MB / 0.5156 GB, free: 3.953 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.5116, allocations: 312.5 kB / 0.5159 GB, free: 3.648 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02575/0.5373, allocations: 16.03 MB / 0.5316 GB, free: 3.152 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001894/0.5392, allocations: 1.621 MB / 0.5331 GB, free: 1.488 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009385/0.5401, allocations: 343 kB / 0.5335 GB, free: 1.148 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/0.5413, allocations: 0.8781 MB / 0.5343 GB, free: 276 kB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5413, allocations: 4 kB / 0.5343 GB, free: 272 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2681/0.8093, allocations: 41.86 MB / 0.5752 GB, free: 71.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.45, allocations: 8 kB / 0.5752 GB, free: 71.39 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv --start-time 0 --stop-time 40 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_Components_EddyCurrentLosses.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable converter_e.singlePhaseElectroMagneticConverter[1].Phi.re in file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv. Warning: Get data of variable converter_e.singlePhaseElectroMagneticConverter[1].Phi.re from file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv failed! Error: Could not read variable converter_e.singlePhaseElectroMagneticConverter[2].Phi.im in file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv. Warning: Get data of variable converter_e.singlePhaseElectroMagneticConverter[2].Phi.im from file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv failed! Error: Could not read variable loss_m.Phi.im in file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv. Warning: Get data of variable loss_m.Phi.im from file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv failed! Error: Could not read variable loss_m.Phi.re in file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv. Warning: Get data of variable loss_m.Phi.re from file Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.073695439001312]