Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.0008852/0.0008852, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008855/0.0008855, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9129/0.9129, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.104e-06/2.104e-06, allocations: 0 / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.237e-05/2.448e-05, allocations: 5.375 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.003064/0.003089, allocations: 2.719 MB / 327.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009211/0.00401, allocations: 0.6738 MB / 328 MB, free: 12.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.004136, allocations: 11.94 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.00429, allocations: 59.38 kB / 328.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.004408, allocations: 91.12 kB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.004629, allocations: 95.75 kB / 328.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002776/0.004906, allocations: 398 kB / 328.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.005097, allocations: 101.8 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003247/0.005421, allocations: 223.5 kB / 328.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.00555, allocations: 111.7 kB / 329 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.005587, allocations: 32 kB / 329.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.066e-05/0.005618, allocations: 32 kB / 329.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.238e-05/0.00566, allocations: 71.73 kB / 329.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.916e-05/0.005739, allocations: 119.7 kB / 329.3 MB, free: 11.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003159/0.006055, allocations: 398.6 kB / 329.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.006059, allocations: 0 / 329.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.00606, allocations: 0 / 329.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.006067, allocations: 0 / 329.7 MB, free: 10.78 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0006813/0.006748, allocations: 0.5319 MB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.006786, allocations: 12.03 kB / 330.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.364e-05/0.006839, allocations: 70.72 kB / 330.3 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.873e-05/0.006888, allocations: 36.7 kB / 330.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002616/0.00715, allocations: 205.2 kB / 330.5 MB, free: 9.871 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.007168, allocations: 25.03 kB / 330.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.007205, allocations: 32.38 kB / 330.6 MB, free: 9.812 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003774/0.007582, allocations: 326 kB / 330.9 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.007592, allocations: 192 / 330.9 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.007612, allocations: 12.12 kB / 330.9 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.007621, allocations: 11.98 kB / 330.9 MB, free: 9.453 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.007887, allocations: 210.5 kB / 331.1 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009839/0.008871, allocations: 0.8559 MB / 332 MB, free: 8.324 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/0.009102, allocations: 150.6 kB / 332.1 MB, free: 8.168 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/0.009205, allocations: 76.75 kB / 332.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.009222, allocations: 320 / 332.2 MB, free: 8.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.009252, allocations: 42.5 kB / 332.3 MB, free: 8.039 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.673e-06/0.009254, allocations: 3.938 kB / 332.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003839/0.009638, allocations: 216.2 kB / 332.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.009671, allocations: 55.41 kB / 332.5 MB, free: 7.754 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001553/0.009826, allocations: 211 kB / 332.7 MB, free: 7.539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.658e-05/0.009843, allocations: 29.7 kB / 332.8 MB, free: 7.504 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.147e-05/0.009934, allocations: 200.4 kB / 333 MB, free: 7.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.919e-05/0.009973, allocations: 67.36 kB / 333 MB, free: 7.238 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.219e-05/0.01003, allocations: 45.7 kB / 333.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.546e-05/0.01011, allocations: 330.8 kB / 333.4 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.727e-05/0.01021, allocations: 67.95 kB / 333.5 MB, free: 6.789 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.01034, allocations: 121.9 kB / 333.6 MB, free: 6.648 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.01055, allocations: 173.9 kB / 333.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.01056, allocations: 0 / 333.7 MB, free: 6.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002756/0.01083, allocations: 257.1 kB / 334 MB, free: 6.199 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.01085, allocations: 4 kB / 334 MB, free: 6.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.01085, allocations: 4 kB / 334 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.01087, allocations: 0 / 334 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.01103, allocations: 59.97 kB / 334.1 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.01104, allocations: 11.92 kB / 334.1 MB, free: 6.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.143e-05/0.01111, allocations: 31.95 kB / 334.1 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.248e-05/0.01112, allocations: 8 kB / 334.1 MB, free: 6.082 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.815e-05/0.01122, allocations: 141.7 kB / 334.3 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.487e-05/0.01125, allocations: 23.84 kB / 334.3 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.01151, allocations: 187.4 kB / 334.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.01152, allocations: 0 / 334.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.01152, allocations: 0 / 334.5 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.01153, allocations: 3.984 kB / 334.5 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.01174, allocations: 264.6 kB / 334.7 MB, free: 5.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.01175, allocations: 11.94 kB / 334.7 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.0119, allocations: 51.91 kB / 334.8 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.0119, allocations: 3.938 kB / 334.8 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.01191, allocations: 8 kB / 334.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.01192, allocations: 3.984 kB / 334.8 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.01192, allocations: 48 / 334.8 MB, free: 5.332 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.01227, allocations: 347.2 kB / 335.1 MB, free: 4.977 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.0123, allocations: 31.86 kB / 335.2 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.01232, allocations: 4 kB / 335.2 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.0124, allocations: 15.92 kB / 335.2 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.01245, allocations: 19.97 kB / 335.2 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.01246, allocations: 4 kB / 335.2 MB, free: 4.902 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.805e-05/0.01255, allocations: 148.5 kB / 335.4 MB, free: 4.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01255, allocations: 0 / 335.4 MB, free: 4.758 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002048/0.01275, allocations: 79.78 kB / 335.4 MB, free: 4.68 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.phi,inductor2.i,capacitor2.v) * 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 (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005371/0.01329, allocations: 0.8904 MB / 336.3 MB, free: 3.766 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002316/0.01352, allocations: 147.9 kB / 336.5 MB, free: 3.621 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01352, allocations: 0 / 336.5 MB, free: 3.621 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.271e-05/0.01361, allocations: 67.91 kB / 336.5 MB, free: 3.555 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.01385, allocations: 32.19 kB / 336.6 MB, free: 3.523 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.01609, allocations: 2.574 MB / 339.1 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001039/0.01619, allocations: 159.1 kB / 339.3 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.451e-05/0.01626, allocations: 25.94 kB / 339.3 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.537e-05/0.01635, allocations: 96.47 kB / 339.4 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of SimCode: time 6.82e-07/0.01635, allocations: 0 / 339.4 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01863/0.03498, allocations: 5.329 MB / 344.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.888/6.923, allocations: 7.375 kB / 344.8 MB, free: 11.36 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sineVoltage.phi in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.95753267314285]