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.001565/0.001565, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001788/0.001788, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.418/1.418, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.001535/0.001535, allocations: 47.92 kB / 377.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2759, allocations: 53.37 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004326/0.2802, allocations: 2.708 MB / 433.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2815, allocations: 0.6755 MB / 434.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.2816, allocations: 7.938 kB / 434.5 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.2818, allocations: 59.42 kB / 434.5 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002258/0.282, allocations: 87.19 kB / 434.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.2823, allocations: 91.83 kB / 434.7 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004112/0.2827, allocations: 382.4 kB / 435.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.2829, allocations: 105.8 kB / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000294/0.2832, allocations: 155.4 kB / 435.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.2834, allocations: 135.3 kB / 435.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/0.2835, allocations: 32 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.618e-05/0.2835, allocations: 32 kB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.002e-05/0.2836, allocations: 67.77 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.2837, allocations: 135.4 kB / 435.7 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004206/0.2841, allocations: 386.3 kB / 436.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2841, allocations: 4 kB / 436.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2841, allocations: 4 kB / 436.1 MB, free: 1.598 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.2842, allocations: 3.938 kB / 436.1 MB, free: 1.594 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.0009519/0.2851, allocations: 0.5404 MB / 436.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2851, allocations: 8.031 kB / 436.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.212e-05/0.2852, allocations: 66.72 kB / 436.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.2853, allocations: 44.7 kB / 436.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003628/0.2857, allocations: 202.7 kB / 437 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.609e-05/0.2857, allocations: 25.03 kB / 437 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.592e-05/0.2858, allocations: 36.36 kB / 437 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00057/0.2864, allocations: 325.6 kB / 437.4 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.2864, allocations: 0 / 437.4 MB, free: 288 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.968e-05/0.2864, allocations: 12 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.355e-05/0.2864, allocations: 11.98 kB / 437.4 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.2869, allocations: 202.5 kB / 437.6 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.2888, allocations: 0.8707 MB / 438.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000466/0.2893, allocations: 150.6 kB / 438.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002594/0.2895, allocations: 76.81 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.2895, allocations: 4 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.2896, allocations: 30.56 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.834e-06/0.2896, allocations: 3.938 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008313/0.2904, allocations: 217.6 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.06e-05/0.2905, allocations: 55.41 kB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003553/0.2908, allocations: 218.7 kB / 439.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.2909, allocations: 25.7 kB / 439.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.2911, allocations: 196.4 kB / 439.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/0.2911, allocations: 63.44 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.811e-05/0.2912, allocations: 45.7 kB / 439.5 MB, free: 13.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002174/0.2914, allocations: 330.8 kB / 439.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.2916, allocations: 67.95 kB / 439.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002129/0.2918, allocations: 129.8 kB / 440 MB, free: 13.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.2922, allocations: 181.8 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.2922, allocations: 3.938 kB / 440.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000578/0.2928, allocations: 241.3 kB / 440.5 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.2928, allocations: 10.5 kB / 440.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2928, allocations: 0 / 440.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.2929, allocations: 4 kB / 440.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.2931, allocations: 63.91 kB / 440.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.2931, allocations: 7.938 kB / 440.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.2933, allocations: 31.77 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.2933, allocations: 8 kB / 440.6 MB, free: 12.88 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.0001514/0.2935, allocations: 145.9 kB / 440.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.2935, allocations: 19.84 kB / 440.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004054/0.2939, allocations: 183.4 kB / 440.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2939, allocations: 4 kB / 440.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.2939, allocations: 0 / 440.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.2939, allocations: 3.984 kB / 440.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003451/0.2943, allocations: 276.5 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2943, allocations: 0 / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.2945, allocations: 59.91 kB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2945, allocations: 0 / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.2945, allocations: 4 kB / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.2946, allocations: 0 / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.2946, allocations: 0 / 441.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006657/0.2952, allocations: 361.9 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.582e-05/0.2953, allocations: 19.86 kB / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.2953, allocations: 8.062 kB / 441.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.2954, allocations: 19.98 kB / 441.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.899e-05/0.2955, allocations: 11.97 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.2955, allocations: 4 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000147/0.2957, allocations: 156.5 kB / 441.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2957, allocations: 0 / 441.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003238/0.296, allocations: 79.72 kB / 441.9 MB, free: 11.47 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.0009149/0.2969, allocations: 0.884 MB / 442.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003808/0.2973, allocations: 151.9 kB / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2973, allocations: 0 / 442.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.2974, allocations: 67.91 kB / 443 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.2978, allocations: 34.25 kB / 443 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003675/0.3014, allocations: 2.701 MB / 445.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.3016, allocations: 159.1 kB / 445.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.929e-05/0.3017, allocations: 17.95 kB / 445.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3019, allocations: 99.39 kB / 446 MB, free: 7.207 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3019, allocations: 4 kB / 446 MB, free: 7.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.335, allocations: 5.193 MB / 451.2 MB, free: 2.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.35, allocations: 21.61 kB / 451.2 MB, free: 2.164 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: 14.104033151175827]