Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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.001821/0.001821, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002058/0.002058, allocations: 194 kB / 23.71 MB, free: 4.406 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.363/1.363, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 47.92 kB / 370.4 MB, free: 9.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2619, allocations: 52.18 MB / 422.6 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007053/0.2689, allocations: 4.762 MB / 427.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002651/0.2716, allocations: 1.391 MB / 428.7 MB, free: 8.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003383/0.2719, allocations: 35.69 kB / 428.8 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004672/0.2724, allocations: 225.7 kB / 429 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004517/0.2728, allocations: 194 kB / 429.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007421/0.2736, allocations: 399.4 kB / 429.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.2748, allocations: 1.115 MB / 430.7 MB, free: 6.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006561/0.2754, allocations: 314.6 kB / 431 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005201/0.276, allocations: 414.3 kB / 431.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004747/0.2764, allocations: 377.5 kB / 431.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.2766, allocations: 80 kB / 431.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002059/0.2768, allocations: 99.98 kB / 432 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003151/0.2771, allocations: 215.1 kB / 432.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004757/0.2776, allocations: 409.7 kB / 432.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0013/0.2789, allocations: 1.186 MB / 433.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2789, allocations: 0 / 433.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2789, allocations: 0 / 433.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.2789, allocations: 0 / 433.8 MB, free: 3.145 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.00193/0.2808, allocations: 1.267 MB / 435 MB, free: 1.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2808, allocations: 8.031 kB / 435 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001715/0.281, allocations: 156.2 kB / 435.2 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.2812, allocations: 131.2 kB / 435.3 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.2823, allocations: 0.5743 MB / 435.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.673e-05/0.2824, allocations: 81.94 kB / 436 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.2825, allocations: 96 kB / 436.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.2843, allocations: 1.085 MB / 437.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.2843, allocations: 0 / 437.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.253e-05/0.2844, allocations: 51.88 kB / 437.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.827e-05/0.2845, allocations: 28 kB / 437.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.2856, allocations: 0.5578 MB / 437.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005395/0.291, allocations: 5.226 MB / 443 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005716/0.2916, allocations: 224.9 kB / 443.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.2919, allocations: 149.6 kB / 443.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001306/0.292, allocations: 11.98 kB / 443.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.292, allocations: 38.5 kB / 443.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.174e-06/0.292, allocations: 0 / 443.4 MB, free: 8.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003856/0.2959, allocations: 1.597 MB / 445 MB, free: 7.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.355e-05/0.296, allocations: 85.05 kB / 445.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007718/0.2967, allocations: 0.6489 MB / 445.7 MB, free: 6.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.2968, allocations: 33.7 kB / 445.8 MB, free: 6.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005284/0.2973, allocations: 0.6161 MB / 446.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.2975, allocations: 154.7 kB / 446.5 MB, free: 5.723 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.2976, allocations: 142.5 kB / 446.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002514/0.2979, allocations: 386.8 kB / 447.1 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003202/0.2982, allocations: 153.9 kB / 447.2 MB, free: 5.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.2989, allocations: 497.1 kB / 447.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.2999, allocations: 0.7027 MB / 448.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.2999, allocations: 4 kB / 448.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001225/0.3011, allocations: 0.7117 MB / 449.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.3011, allocations: 12 kB / 449.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.3011, allocations: 12 kB / 449.1 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.688e-05/0.3012, allocations: 16 kB / 449.2 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006224/0.3018, allocations: 208.1 kB / 449.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.429e-05/0.3019, allocations: 19.94 kB / 449.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.3022, allocations: 35.98 kB / 449.4 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.3022, allocations: 36 kB / 449.4 MB, free: 2.477 MB / 350.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.0003053/0.3025, allocations: 233.5 kB / 449.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.3027, allocations: 83.42 kB / 449.8 MB, free: 2.156 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.3028, allocations: 70.64 kB / 449.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.3028, allocations: 11.92 kB / 449.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.353e-06/0.3028, allocations: 0 / 449.8 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.3028, allocations: 7.984 kB / 449.8 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.3049, allocations: 1.234 MB / 451.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3049, allocations: 0 / 451.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004578/0.3053, allocations: 108 kB / 451.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.3053, allocations: 7.938 kB / 451.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/0.3054, allocations: 8 kB / 451.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.3054, allocations: 4 kB / 451.2 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3054, allocations: 3.938 kB / 451.2 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.3064, allocations: 0.7032 MB / 451.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.3065, allocations: 71.52 kB / 452 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.3066, allocations: 11.94 kB / 452 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.3069, allocations: 23.98 kB / 452 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.307, allocations: 31.94 kB / 452 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.307, allocations: 12 kB / 452.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004873/0.3075, allocations: 423 kB / 452.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3075, allocations: 0 / 452.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006367/0.3081, allocations: 144 kB / 452.6 MB, free: 15.21 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.001427/0.3095, allocations: 1.25 MB / 453.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007995/0.3103, allocations: 421.3 kB / 454.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3103, allocations: 4.062 kB / 454.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.3106, allocations: 147.7 kB / 454.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005234/0.3111, allocations: 71.3 kB / 454.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008498/0.3196, allocations: 6.138 MB / 460.6 MB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/0.3201, allocations: 417.3 kB / 461 MB, free: 6.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002712/0.3204, allocations: 98 kB / 461.1 MB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/0.3208, allocations: 391.2 kB / 461.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3208, allocations: 0 / 461.5 MB, free: 5.742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04743/0.3683, allocations: 12.38 MB / 473.9 MB, free: 9.609 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.84, allocations: 2.656 kB / 473.9 MB, free: 9.609 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.522668472956866]