Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 184.2 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 47.92 kB / 370.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2859, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00459/0.2905, allocations: 2.924 MB / 425.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.2918, allocations: 0.6738 MB / 426.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.292, allocations: 7.938 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.2922, allocations: 63.44 kB / 426.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.2924, allocations: 91.17 kB / 426.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003179/0.2927, allocations: 91.83 kB / 426.5 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004358/0.2931, allocations: 382.3 kB / 426.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002489/0.2934, allocations: 117.8 kB / 427 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.2936, allocations: 147.6 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.2938, allocations: 155.3 kB / 427.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.068e-05/0.2939, allocations: 32 kB / 427.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.239e-05/0.2939, allocations: 32 kB / 427.3 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.423e-05/0.294, allocations: 71.75 kB / 427.4 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001662/0.2942, allocations: 167.2 kB / 427.6 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004355/0.2946, allocations: 386.7 kB / 427.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2946, allocations: 0 / 427.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2946, allocations: 7.938 kB / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.2946, allocations: 0 / 427.9 MB, free: 9.273 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.0009844/0.2956, allocations: 0.5326 MB / 428.5 MB, free: 8.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.2957, allocations: 12.03 kB / 428.5 MB, free: 8.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.54e-05/0.2957, allocations: 66.72 kB / 428.6 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.995e-05/0.2958, allocations: 40.7 kB / 428.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.2962, allocations: 202 kB / 428.8 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.2962, allocations: 29.03 kB / 428.8 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.2963, allocations: 40.27 kB / 428.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005521/0.2969, allocations: 274.2 kB / 429.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.2969, allocations: 0 / 429.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.039e-05/0.2969, allocations: 12 kB / 429.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.2969, allocations: 8 kB / 429.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004532/0.2974, allocations: 202.5 kB / 429.3 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.2989, allocations: 0.9291 MB / 430.3 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003244/0.2992, allocations: 150.6 kB / 430.4 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.2994, allocations: 72.81 kB / 430.5 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.2994, allocations: 4 kB / 430.5 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.2994, allocations: 38.56 kB / 430.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.2994, allocations: 0 / 430.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005651/0.3, allocations: 213 kB / 430.7 MB, free: 6.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.3, allocations: 51.41 kB / 430.8 MB, free: 6.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.3002, allocations: 214.9 kB / 431 MB, free: 6.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.3003, allocations: 29.7 kB / 431 MB, free: 5.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.3004, allocations: 204.4 kB / 431.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.078e-05/0.3005, allocations: 67.42 kB / 431.3 MB, free: 5.727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.188e-05/0.3006, allocations: 49.66 kB / 431.3 MB, free: 5.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3007, allocations: 330.8 kB / 431.7 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.3009, allocations: 63.95 kB / 431.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.3011, allocations: 114 kB / 431.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003475/0.3014, allocations: 185.8 kB / 432 MB, free: 4.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.3014, allocations: 7.938 kB / 432 MB, free: 4.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004599/0.3019, allocations: 245.3 kB / 432.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.3019, allocations: 4 kB / 432.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.3019, allocations: 4 kB / 432.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.3019, allocations: 7.938 kB / 432.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.3022, allocations: 68.03 kB / 432.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.3022, allocations: 0 / 432.4 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.3024, allocations: 27.83 kB / 432.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.3024, allocations: 8 kB / 432.4 MB, free: 4.57 MB / 334.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.0001376/0.3025, allocations: 145.7 kB / 432.5 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.649e-05/0.3026, allocations: 23.86 kB / 432.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004147/0.303, allocations: 190.4 kB / 432.7 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.303, allocations: 4 kB / 432.7 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.303, allocations: 4 kB / 432.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.303, allocations: 3.984 kB / 432.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000363/0.3034, allocations: 288.5 kB / 433 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3034, allocations: 0 / 433 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.3036, allocations: 51.91 kB / 433.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.3036, allocations: 4 kB / 433.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.3037, allocations: 4 kB / 433.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.3037, allocations: 7.922 kB / 433.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3037, allocations: 0 / 433.1 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005805/0.3042, allocations: 351.2 kB / 433.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.744e-05/0.3043, allocations: 23.91 kB / 433.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.3043, allocations: 0 / 433.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.3045, allocations: 15.98 kB / 433.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.434e-05/0.3045, allocations: 15.97 kB / 433.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.3045, allocations: 8 kB / 433.5 MB, free: 3.375 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001324/0.3047, allocations: 148.6 kB / 433.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3047, allocations: 0 / 433.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.305, allocations: 79.78 kB / 433.7 MB, free: 3.152 MB / 334.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.0008696/0.3059, allocations: 0.8868 MB / 434.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003857/0.3063, allocations: 147.9 kB / 434.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3063, allocations: 0 / 434.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.3064, allocations: 76.16 kB / 434.8 MB, free: 2.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.3067, allocations: 32.83 kB / 434.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003514/0.3103, allocations: 2.717 MB / 437.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.3106, allocations: 0.771 MB / 438.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.554e-05/0.3107, allocations: 25.94 kB / 438.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/0.3108, allocations: 91.41 kB / 438.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3108, allocations: 0 / 438.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03256/0.3434, allocations: 4.772 MB / 443.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.38, allocations: 10.23 kB / 443.2 MB, free: 9.617 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.140957255000103]