Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.001335/0.001335, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001432/0.001432, allocations: 215.8 kB / 23.73 MB, free: 4.16 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.419/1.419, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 47.92 kB / 377.7 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2412, allocations: 53.37 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006724/0.2479, allocations: 4.768 MB / 435.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003592/0.2515, allocations: 1.473 MB / 437.4 MB, free: 372 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005183/0.252, allocations: 39.69 kB / 437.4 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005149/0.2525, allocations: 213.8 kB / 437.6 MB, free: 116 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006485/0.2532, allocations: 198.1 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009769/0.2542, allocations: 419.3 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.2554, allocations: 1.126 MB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005529/0.256, allocations: 316.9 kB / 439.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000557/0.2565, allocations: 414.3 kB / 440 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004342/0.257, allocations: 373.5 kB / 440.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001237/0.2571, allocations: 84 kB / 440.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002146/0.2573, allocations: 116 kB / 440.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.2575, allocations: 207.1 kB / 440.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003628/0.2578, allocations: 405.7 kB / 441.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.2591, allocations: 1.202 MB / 442.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2591, allocations: 0 / 442.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2591, allocations: 0 / 442.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.2591, allocations: 0 / 442.4 MB, free: 11.27 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.00194/0.2611, allocations: 1.267 MB / 443.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.2611, allocations: 8.031 kB / 443.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001691/0.2613, allocations: 152.2 kB / 443.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003424/0.2616, allocations: 155.1 kB / 444 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.2628, allocations: 0.5821 MB / 444.6 MB, free: 9.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.552e-05/0.2628, allocations: 73.94 kB / 444.6 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.263, allocations: 100 kB / 444.7 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.2646, allocations: 1.078 MB / 445.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.2647, allocations: 7.938 kB / 445.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.142e-05/0.2648, allocations: 40 kB / 445.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.754e-05/0.2648, allocations: 32 kB / 445.9 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.2659, allocations: 0.5578 MB / 446.4 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005226/0.2712, allocations: 5.233 MB / 451.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005739/0.2717, allocations: 232.9 kB / 451.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003195/0.2721, allocations: 145.6 kB / 452.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001093/0.2722, allocations: 16.2 kB / 452.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.2722, allocations: 38.5 kB / 452.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.114e-06/0.2722, allocations: 0 / 452.1 MB, free: 1.043 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003764/0.276, allocations: 1.586 MB / 453.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.276, allocations: 89.03 kB / 453.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007391/0.2768, allocations: 0.6683 MB / 454.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.2768, allocations: 33.7 kB / 454.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004372/0.2773, allocations: 0.6239 MB / 455.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.2774, allocations: 142.8 kB / 455.2 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.2775, allocations: 138.6 kB / 455.4 MB, free: 13.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002161/0.2777, allocations: 386.8 kB / 455.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.278, allocations: 153.9 kB / 455.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005612/0.2786, allocations: 493.1 kB / 456.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009455/0.2796, allocations: 0.6985 MB / 457.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.2796, allocations: 4 kB / 457.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001146/0.2807, allocations: 0.7152 MB / 457.8 MB, free: 10.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.2807, allocations: 14.81 kB / 457.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.2807, allocations: 12.84 kB / 457.8 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.05e-05/0.2808, allocations: 16 kB / 457.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006042/0.2814, allocations: 203.6 kB / 458 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.546e-05/0.2814, allocations: 23.92 kB / 458.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.2817, allocations: 35.98 kB / 458.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.2818, allocations: 40 kB / 458.1 MB, free: 10.56 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * 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.0002924/0.2821, allocations: 229.5 kB / 458.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.2822, allocations: 79.48 kB / 458.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.2823, allocations: 82.67 kB / 458.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.2823, allocations: 7.938 kB / 458.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2823, allocations: 0 / 458.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.2823, allocations: 7.984 kB / 458.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.2843, allocations: 1.23 MB / 459.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/0.2843, allocations: 4 kB / 459.8 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004332/0.2848, allocations: 103.9 kB / 459.9 MB, free: 8.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.2848, allocations: 7.922 kB / 459.9 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.2848, allocations: 15.98 kB / 459.9 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2848, allocations: 3.938 kB / 459.9 MB, free: 8.719 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.2848, allocations: 4 kB / 459.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.2858, allocations: 0.713 MB / 460.6 MB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.2859, allocations: 75.45 kB / 460.7 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.286, allocations: 8 kB / 460.7 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002792/0.2863, allocations: 23.98 kB / 460.7 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.298e-05/0.2863, allocations: 27.95 kB / 460.8 MB, free: 7.836 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.287e-05/0.2864, allocations: 11.98 kB / 460.8 MB, free: 7.824 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004943/0.2869, allocations: 431 kB / 461.2 MB, free: 7.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2869, allocations: 0 / 461.2 MB, free: 7.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005973/0.2875, allocations: 136 kB / 461.3 MB, free: 7.277 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * 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.00133/0.2888, allocations: 1.254 MB / 462.6 MB, free: 5.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007829/0.2896, allocations: 418.5 kB / 463 MB, free: 5.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.2896, allocations: 0 / 463 MB, free: 5.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002781/0.2899, allocations: 150.5 kB / 463.1 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.2904, allocations: 76.17 kB / 463.2 MB, free: 5.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008507/0.2989, allocations: 6.154 MB / 469.4 MB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.2993, allocations: 413.4 kB / 469.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002625/0.2996, allocations: 98.05 kB / 469.9 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004626/0.3, allocations: 391.3 kB / 470.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3, allocations: 0 / 470.2 MB, free: 13.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05212/0.3522, allocations: 12.46 MB / 482.7 MB, free: 1.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.73, allocations: 3.188 kB / 482.7 MB, free: 1.582 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_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_ResonanceCircuits.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.386617495212704]