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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001119, allocations: 110.8 kB / 16.92 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 191.3 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001166, allocations: 44.25 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08305/0.08423, allocations: 49.45 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004554/0.08883, allocations: 2.88 MB / 353 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.09017, allocations: 0.6816 MB / 353.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.09042, allocations: 7.938 kB / 353.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002409/0.09069, allocations: 55.44 kB / 353.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.09095, allocations: 91.19 kB / 353.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.09125, allocations: 91.83 kB / 354 MB, free: 496 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004551/0.09172, allocations: 370.4 kB / 354.3 MB, free: 124 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003863/0.09212, allocations: 161.4 kB / 354.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002799/0.09242, allocations: 135.5 kB / 354.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.09273, allocations: 159.3 kB / 354.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.991e-05/0.09282, allocations: 32 kB / 354.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.523e-05/0.09292, allocations: 32 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.033e-05/0.09302, allocations: 71.75 kB / 354.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002256/0.09326, allocations: 175.1 kB / 355.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000502/0.09378, allocations: 374.9 kB / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.0938, allocations: 0 / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09381, allocations: 0 / 355.4 MB, free: 15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.09383, allocations: 0 / 355.4 MB, free: 15 MB / 302.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.001263/0.09511, allocations: 0.6198 MB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.09517, allocations: 8.031 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.09528, allocations: 70.72 kB / 356.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.09539, allocations: 36.47 kB / 356.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.0958, allocations: 264.2 kB / 356.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.09585, allocations: 25.03 kB / 356.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.471e-05/0.09593, allocations: 28.38 kB / 356.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000778/0.09672, allocations: 274.2 kB / 356.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.09675, allocations: 0 / 356.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.259e-05/0.09681, allocations: 20 kB / 356.8 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.09683, allocations: 8 kB / 356.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007001/0.09754, allocations: 206.4 kB / 357 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00214/0.0997, allocations: 0.9868 MB / 358 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004621/0.1002, allocations: 154.6 kB / 358.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.1005, allocations: 80.81 kB / 358.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.1005, allocations: 4 kB / 358.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/0.1006, allocations: 42.5 kB / 358.2 MB, free: 12 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.004e-06/0.1006, allocations: 0 / 358.2 MB, free: 12 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008352/0.1014, allocations: 209.6 kB / 358.5 MB, free: 11.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.775e-05/0.1015, allocations: 51.41 kB / 358.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002971/0.1018, allocations: 207 kB / 358.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.1018, allocations: 29.7 kB / 358.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.102, allocations: 196 kB / 358.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.583e-05/0.1021, allocations: 67.08 kB / 359 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.1022, allocations: 49.62 kB / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.1024, allocations: 330.8 kB / 359.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.1027, allocations: 63.95 kB / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.103, allocations: 109.9 kB / 359.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.1036, allocations: 185.8 kB / 359.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.477e-06/0.1036, allocations: 3.938 kB / 359.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007458/0.1043, allocations: 245.2 kB / 360 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.1044, allocations: 4 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1044, allocations: 4 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1044, allocations: 4 kB / 360 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004253/0.1049, allocations: 59.91 kB / 360 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1049, allocations: 3.938 kB / 360 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002518/0.1051, allocations: 31.67 kB / 360.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.1052, allocations: 16.12 kB / 360.1 MB, free: 10.07 MB / 302.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.0001748/0.1054, allocations: 141.7 kB / 360.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.321e-05/0.1055, allocations: 19.81 kB / 360.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006052/0.1061, allocations: 187.4 kB / 360.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.1061, allocations: 0 / 360.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.1061, allocations: 4.047 kB / 360.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.1061, allocations: 11.97 kB / 360.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000519/0.1067, allocations: 317.3 kB / 360.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1067, allocations: 0 / 360.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.1071, allocations: 55.91 kB / 360.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1072, allocations: 0 / 360.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.1072, allocations: 4 kB / 360.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.1072, allocations: 3.984 kB / 360.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1072, allocations: 0 / 360.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008547/0.1081, allocations: 354 kB / 361.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.866e-05/0.1082, allocations: 96.8 kB / 361.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.1082, allocations: 8.062 kB / 361.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.1085, allocations: 15.98 kB / 361.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.236e-05/0.1086, allocations: 11.98 kB / 361.3 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.186e-05/0.1087, allocations: 7.984 kB / 361.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000195/0.1089, allocations: 152.6 kB / 361.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1089, allocations: 3.938 kB / 361.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005936/0.1095, allocations: 71.75 kB / 361.5 MB, free: 8.535 MB / 302.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.001256/0.1107, allocations: 0.8919 MB / 362.4 MB, free: 7.613 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006373/0.1114, allocations: 171.8 kB / 362.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.1114, allocations: 0 / 362.6 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.1117, allocations: 71.91 kB / 362.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.1123, allocations: 35.45 kB / 362.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004373/0.1167, allocations: 2.7 MB / 365.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.117, allocations: 0.7671 MB / 366.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.067e-05/0.1171, allocations: 17.95 kB / 366.2 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.1172, allocations: 99.39 kB / 366.3 MB, free: 3.613 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1172, allocations: 0 / 366.3 MB, free: 3.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1815/0.2988, allocations: 4.404 MB / 370.7 MB, free: 25.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.212, allocations: 9.703 kB / 370.7 MB, free: 25.68 MB / 302.1 MB (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) 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) Reference file matches