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.001814/0.001814, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.002193/0.002193, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.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 0.001457/0.001457, allocations: 47.92 kB / 377.8 MB, free: 3.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2648, allocations: 53.36 MB / 431.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004501/0.2693, allocations: 2.941 MB / 434.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2707, allocations: 0.7166 MB / 434.8 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.2708, allocations: 11.94 kB / 434.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002108/0.271, allocations: 55.42 kB / 434.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001827/0.2712, allocations: 91.19 kB / 435 MB, free: 3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.2715, allocations: 91.77 kB / 435 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004507/0.272, allocations: 382.5 kB / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.2722, allocations: 109.8 kB / 435.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003223/0.2725, allocations: 147.5 kB / 435.7 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002299/0.2728, allocations: 163.2 kB / 435.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.8e-05/0.2728, allocations: 32 kB / 435.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.334e-05/0.2729, allocations: 32 kB / 435.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.382e-05/0.2729, allocations: 71.77 kB / 436 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.2731, allocations: 171.1 kB / 436.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000467/0.2736, allocations: 378.8 kB / 436.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2736, allocations: 4 kB / 436.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2736, allocations: 0 / 436.5 MB, free: 1.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.2736, allocations: 0 / 436.5 MB, free: 1.449 MB / 334.1 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.0009938/0.2746, allocations: 0.5365 MB / 437 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.2746, allocations: 8.031 kB / 437 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.156e-05/0.2747, allocations: 74.72 kB / 437.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.124e-05/0.2748, allocations: 40.7 kB / 437.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.2752, allocations: 202.7 kB / 437.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.897e-05/0.2752, allocations: 25.03 kB / 437.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.2753, allocations: 28.38 kB / 437.4 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005331/0.2758, allocations: 286.1 kB / 437.7 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.2758, allocations: 0 / 437.7 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.98e-05/0.2758, allocations: 16 kB / 437.7 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.2758, allocations: 4 kB / 437.7 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004773/0.2763, allocations: 206.5 kB / 437.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/0.2779, allocations: 0.9291 MB / 438.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003286/0.2782, allocations: 162.1 kB / 439 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.2784, allocations: 76.81 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.2784, allocations: 3.938 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.2784, allocations: 34.56 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.2784, allocations: 0 / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005544/0.279, allocations: 220.3 kB / 439.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.279, allocations: 55.41 kB / 439.4 MB, free: 14.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.2793, allocations: 218.7 kB / 439.6 MB, free: 14.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2793, allocations: 29.7 kB / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/0.2795, allocations: 184.4 kB / 439.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.91e-05/0.2795, allocations: 75.38 kB / 439.9 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.295e-05/0.2796, allocations: 45.7 kB / 439.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.2797, allocations: 330.8 kB / 440.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.2799, allocations: 59.97 kB / 440.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002011/0.2801, allocations: 118 kB / 440.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.2805, allocations: 197.8 kB / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/0.2805, allocations: 3.938 kB / 440.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004464/0.2809, allocations: 237.3 kB / 440.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.2809, allocations: 4 kB / 440.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2809, allocations: 8.109 kB / 440.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.281, allocations: 4 kB / 440.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.2812, allocations: 59.95 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.2812, allocations: 4 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.2814, allocations: 27.86 kB / 441 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.2814, allocations: 15.94 kB / 441 MB, free: 12.73 MB / 350.1 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 0.0001405/0.2815, allocations: 145.7 kB / 441.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.2816, allocations: 19.86 kB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004026/0.282, allocations: 198.4 kB / 441.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.282, allocations: 4 kB / 441.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.282, allocations: 0 / 441.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.282, allocations: 0 / 441.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003545/0.2823, allocations: 292.5 kB / 441.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.2823, allocations: 4 kB / 441.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002589/0.2826, allocations: 47.97 kB / 441.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2826, allocations: 0 / 441.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.2826, allocations: 12 kB / 441.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2826, allocations: 0 / 441.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2826, allocations: 3.938 kB / 441.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005759/0.2832, allocations: 355.1 kB / 442 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.827e-05/0.2832, allocations: 27.78 kB / 442.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.2833, allocations: 8.062 kB / 442.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001629/0.2834, allocations: 15.98 kB / 442.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.102e-05/0.2835, allocations: 11.98 kB / 442.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.2835, allocations: 7.984 kB / 442.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001403/0.2836, allocations: 152.6 kB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2836, allocations: 0 / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.2839, allocations: 71.78 kB / 442.3 MB, free: 11.3 MB / 350.1 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.0008824/0.2848, allocations: 0.8864 MB / 443.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003826/0.2852, allocations: 148.5 kB / 443.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.2852, allocations: 4 kB / 443.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.2854, allocations: 75.84 kB / 443.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.2857, allocations: 28.16 kB / 443.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003649/0.2893, allocations: 2.717 MB / 446.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004111/0.2897, allocations: 0.7671 MB / 446.9 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.052e-05/0.2898, allocations: 17.95 kB / 447 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.29, allocations: 95.41 kB / 447 MB, free: 6.41 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.29, allocations: 0 / 447 MB, free: 6.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03224/0.3222, allocations: 4.794 MB / 451.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.04, allocations: 3.125 kB / 451.8 MB, free: 1.77 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/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: 13.883809201000986]