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.001527/0.001526, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001475/0.001475, allocations: 197.3 kB / 18.01 MB, free: 4.918 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 51.91 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2677, allocations: 49.44 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004481/0.2722, allocations: 2.885 MB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.2736, allocations: 0.6621 MB / 403.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.2738, allocations: 8 kB / 403.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002492/0.274, allocations: 59.38 kB / 403.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.2743, allocations: 99.17 kB / 404 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.2746, allocations: 83.89 kB / 404 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004495/0.275, allocations: 382.4 kB / 404.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003034/0.2753, allocations: 149.3 kB / 404.6 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.2756, allocations: 147.4 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.2758, allocations: 147.3 kB / 404.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.386e-05/0.2759, allocations: 35.98 kB / 404.9 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.6e-05/0.2759, allocations: 32 kB / 404.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.287e-05/0.276, allocations: 71.77 kB / 405 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.2762, allocations: 175.2 kB / 405.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000476/0.2767, allocations: 381.3 kB / 405.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.2767, allocations: 0 / 405.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.2767, allocations: 0 / 405.5 MB, free: 3.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.2767, allocations: 0 / 405.5 MB, free: 3.5 MB / 318.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.001096/0.2778, allocations: 0.6157 MB / 406.1 MB, free: 2.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.2779, allocations: 12.03 kB / 406.2 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.138e-05/0.278, allocations: 74.59 kB / 406.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.207e-05/0.2781, allocations: 44.7 kB / 406.3 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.2785, allocations: 263.8 kB / 406.5 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.2785, allocations: 21.03 kB / 406.6 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.369e-05/0.2786, allocations: 40.33 kB / 406.6 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005742/0.2792, allocations: 274.2 kB / 406.9 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.2792, allocations: 4 kB / 406.9 MB, free: 2.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.221e-05/0.2793, allocations: 16 kB / 406.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.2793, allocations: 8 kB / 406.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004742/0.2798, allocations: 202.5 kB / 407.1 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001649/0.2814, allocations: 0.9755 MB / 408.1 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003615/0.2818, allocations: 158.5 kB / 408.2 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.282, allocations: 80.91 kB / 408.3 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.733e-05/0.282, allocations: 7.938 kB / 408.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.2821, allocations: 30.56 kB / 408.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.2821, allocations: 0 / 408.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006244/0.2827, allocations: 217.7 kB / 408.5 MB, free: 284 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.2828, allocations: 55.41 kB / 408.6 MB, free: 216 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00028/0.2831, allocations: 207.1 kB / 408.8 MB, free: 16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.2831, allocations: 29.7 kB / 408.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.2833, allocations: 192.4 kB / 409 MB, free: 15.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.113e-05/0.2834, allocations: 75.41 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.349e-05/0.2835, allocations: 45.7 kB / 409.1 MB, free: 15.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.2837, allocations: 334.8 kB / 409.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.2838, allocations: 63.91 kB / 409.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/0.2841, allocations: 114 kB / 409.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.2844, allocations: 193.8 kB / 409.8 MB, free: 14.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2845, allocations: 7.938 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004773/0.2849, allocations: 241.2 kB / 410.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.285, allocations: 8 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.285, allocations: 0 / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.285, allocations: 4 kB / 410.1 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.2853, allocations: 63.89 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.2853, allocations: 4 kB / 410.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.2854, allocations: 27.83 kB / 410.2 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.652e-05/0.2855, allocations: 11.94 kB / 410.2 MB, free: 14.53 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.0001361/0.2856, allocations: 145.8 kB / 410.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.2857, allocations: 23.86 kB / 410.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000443/0.2861, allocations: 190.5 kB / 410.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.2861, allocations: 4 kB / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2861, allocations: 0 / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2861, allocations: 0 / 410.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.2865, allocations: 317.4 kB / 410.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2866, allocations: 4 kB / 410.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.2868, allocations: 51.91 kB / 410.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2868, allocations: 4 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.2869, allocations: 4 kB / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2869, allocations: 0 / 410.9 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.696e-06/0.2869, allocations: 4 kB / 410.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006565/0.2875, allocations: 355.1 kB / 411.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.772e-05/0.2876, allocations: 105 kB / 411.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.2877, allocations: 4 kB / 411.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.2878, allocations: 11.98 kB / 411.4 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.2879, allocations: 20.02 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.2879, allocations: 4 kB / 411.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001518/0.2881, allocations: 144.6 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2881, allocations: 0 / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.2884, allocations: 83.78 kB / 411.6 MB, free: 12.99 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.000957/0.2894, allocations: 0.8941 MB / 412.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004308/0.2898, allocations: 159.9 kB / 412.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2898, allocations: 4 kB / 412.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.29, allocations: 75.89 kB / 412.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.2904, allocations: 27.98 kB / 412.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003626/0.294, allocations: 2.712 MB / 415.5 MB, free: 8.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.2945, allocations: 0.7671 MB / 416.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.85e-05/0.2946, allocations: 21.92 kB / 416.3 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.2947, allocations: 91.41 kB / 416.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2947, allocations: 0 / 416.4 MB, free: 8.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02885/0.3236, allocations: 4.517 MB / 420.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.525, allocations: 15.45 kB / 420.9 MB, free: 3.66 MB / 334.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