Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001749/0.001749, allocations: 127 kB / 17.79 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001997/0.001997, allocations: 210.5 kB / 20.75 MB, free: 2.293 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.608/1.608, allocations: 230.4 MB / 254 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 67.89 kB / 373 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1285, allocations: 53.37 MB / 426.4 MB, free: 4.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.00454/0.1331, allocations: 2.931 MB / 429.3 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1344, allocations: 0.7089 MB / 430 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.1346, allocations: 8 kB / 430 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.1348, allocations: 59.38 kB / 430.1 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.1349, allocations: 83.2 kB / 430.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002648/0.1352, allocations: 91.88 kB / 430.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004278/0.1356, allocations: 382.3 kB / 430.6 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.1359, allocations: 109.4 kB / 430.7 MB, free: 224 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002568/0.1361, allocations: 155.5 kB / 430.9 MB, free: 68 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2648/0.4009, allocations: 152.1 kB / 431 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.401, allocations: 32.03 kB / 431.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.4012, allocations: 32.12 kB / 431.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.4013, allocations: 67.77 kB / 431.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002314/0.4015, allocations: 169 kB / 431.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005264/0.402, allocations: 382.1 kB / 431.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.402, allocations: 3.875 kB / 431.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.402, allocations: 0.7188 kB / 431.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.402, allocations: 1.281 kB / 431.7 MB, free: 7.797 MB / 350.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.0009646/0.403, allocations: 0.616 MB / 432.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.403, allocations: 10.59 kB / 432.3 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.241e-05/0.4031, allocations: 71.22 kB / 432.4 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.538e-05/0.4032, allocations: 38.8 kB / 432.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.4035, allocations: 260.4 kB / 432.7 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.717e-05/0.4036, allocations: 25.53 kB / 432.7 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.809e-05/0.4036, allocations: 38.28 kB / 432.7 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005285/0.4041, allocations: 273.4 kB / 433 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.4042, allocations: 0.9062 kB / 433 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.4042, allocations: 13.19 kB / 433 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.4042, allocations: 7.781 kB / 433 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004463/0.4046, allocations: 208.6 kB / 433.2 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.406, allocations: 0.9748 MB / 434.2 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003417/0.4064, allocations: 155.6 kB / 434.4 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.4065, allocations: 74.72 kB / 434.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.4066, allocations: 4.562 kB / 434.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.512e-05/0.4066, allocations: 36.36 kB / 434.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.4066, allocations: 0 / 434.5 MB, free: 6.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006459/0.4072, allocations: 216.7 kB / 434.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.4073, allocations: 58.38 kB / 434.8 MB, free: 6.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/0.4075, allocations: 213 kB / 435 MB, free: 6.258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.4075, allocations: 32.58 kB / 435 MB, free: 6.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.4076, allocations: 193.8 kB / 435.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.4077, allocations: 69.61 kB / 435.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.183e-05/0.4077, allocations: 45.02 kB / 435.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.219e-05/0.4078, allocations: 334.3 kB / 435.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.408, allocations: 61.34 kB / 435.7 MB, free: 5.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.4082, allocations: 123.7 kB / 435.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.4086, allocations: 182.8 kB / 436 MB, free: 5.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4086, allocations: 1.062 kB / 436 MB, free: 5.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000484/0.409, allocations: 241.6 kB / 436.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.4091, allocations: 6.406 kB / 436.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.4091, allocations: 1.375 kB / 436.2 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.4091, allocations: 12.12 kB / 436.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.4094, allocations: 66.31 kB / 436.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.4094, allocations: 3.75 kB / 436.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.4095, allocations: 26.56 kB / 436.3 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.4095, allocations: 11.66 kB / 436.3 MB, free: 5.527 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.0001021/0.4097, allocations: 137.1 kB / 436.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.859e-05/0.4097, allocations: 27.45 kB / 436.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004155/0.4101, allocations: 193.7 kB / 436.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.4101, allocations: 6.781 kB / 436.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4101, allocations: 0 / 436.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.4101, allocations: 1.406 kB / 436.7 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003586/0.4105, allocations: 321.5 kB / 437 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.4105, allocations: 0 / 437 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002905/0.4108, allocations: 56.36 kB / 437.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.4108, allocations: 1.375 kB / 437.1 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.4108, allocations: 9.891 kB / 437.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.4108, allocations: 1.406 kB / 437.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4108, allocations: 0 / 437.1 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005635/0.4114, allocations: 345.8 kB / 437.4 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.235e-05/0.4114, allocations: 103.2 kB / 437.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.4115, allocations: 7.953 kB / 437.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.4116, allocations: 16.66 kB / 437.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/0.4117, allocations: 14.14 kB / 437.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.4117, allocations: 4.25 kB / 437.6 MB, free: 4.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.4118, allocations: 152 kB / 437.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4118, allocations: 0 / 437.7 MB, free: 4.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.4122, allocations: 73.5 kB / 437.8 MB, free: 4.793 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.0007876/0.413, allocations: 0.8852 MB / 438.7 MB, free: 4.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004378/0.4134, allocations: 152.2 kB / 438.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4134, allocations: 5.125 kB / 438.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001755/0.4136, allocations: 76.12 kB / 438.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003515/0.4139, allocations: 28.41 kB / 438.9 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003389/0.4173, allocations: 2.709 MB / 441.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.4176, allocations: 0.7703 MB / 442.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.4177, allocations: 23.88 kB / 442.4 MB, free: 1.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001315/0.4178, allocations: 95.61 kB / 442.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4178, allocations: 1.062 kB / 442.5 MB, free: 1.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03539/0.4532, allocations: 4.549 MB / 447.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.594/9.047, allocations: 19.14 kB / 447.1 MB, free: 0.7773 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv. Warning: Get data of variable sineVoltage.phi from file Modelica_trunk_Modelica.Electrical.Analog.Examples.SeriesResonance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.02185764000751]