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.001712/0.001712, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002168/0.002168, allocations: 211.7 kB / 23.73 MB, free: 4.523 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.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001585/0.001585, allocations: 47.92 kB / 377.7 MB, free: 2.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2622, allocations: 53.38 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006875/0.2691, allocations: 4.772 MB / 435.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003223/0.2723, allocations: 1.473 MB / 437.4 MB, free: 368 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000603/0.2729, allocations: 39.69 kB / 437.4 MB, free: 328 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005381/0.2735, allocations: 221.8 kB / 437.6 MB, free: 104 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006544/0.2741, allocations: 190.1 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008907/0.275, allocations: 419.3 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001253/0.2763, allocations: 1.126 MB / 439.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005945/0.2768, allocations: 334.6 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005778/0.2774, allocations: 418.2 kB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000472/0.2779, allocations: 437.5 kB / 440.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.278, allocations: 84 kB / 440.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002044/0.2782, allocations: 103.9 kB / 440.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001811/0.2784, allocations: 215.2 kB / 440.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003911/0.2788, allocations: 413.6 kB / 441.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001295/0.2801, allocations: 1.194 MB / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2801, allocations: 0 / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2801, allocations: 0 / 442.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.2801, allocations: 0 / 442.5 MB, free: 11.18 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.002068/0.2822, allocations: 1.267 MB / 443.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.2822, allocations: 12.03 kB / 443.8 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001922/0.2824, allocations: 152.2 kB / 443.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004161/0.2829, allocations: 151.1 kB / 444.1 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.2841, allocations: 0.5821 MB / 444.7 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.955e-05/0.2842, allocations: 77.94 kB / 444.7 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.2843, allocations: 99.94 kB / 444.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.286, allocations: 1.078 MB / 445.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.469e-05/0.2861, allocations: 11.89 kB / 445.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.135e-05/0.2861, allocations: 44 kB / 446 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.2862, allocations: 24 kB / 446 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.2873, allocations: 0.5539 MB / 446.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005518/0.2928, allocations: 5.237 MB / 451.8 MB, free: 1.414 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.2934, allocations: 220.9 kB / 452 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.2937, allocations: 145.7 kB / 452.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.2938, allocations: 12.27 kB / 452.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.998e-05/0.2938, allocations: 38.56 kB / 452.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.054e-06/0.2938, allocations: 0 / 452.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003857/0.2977, allocations: 1.593 MB / 453.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.2977, allocations: 89.05 kB / 453.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000743/0.2985, allocations: 0.6606 MB / 454.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.097e-05/0.2985, allocations: 33.7 kB / 454.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004495/0.299, allocations: 0.6161 MB / 455.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.2991, allocations: 158.7 kB / 455.3 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001704/0.2993, allocations: 134.6 kB / 455.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.2995, allocations: 382.8 kB / 455.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.2998, allocations: 153.9 kB / 456 MB, free: 13.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006019/0.3004, allocations: 497.1 kB / 456.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009983/0.3014, allocations: 0.6986 MB / 457.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.3014, allocations: 4 kB / 457.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001223/0.3026, allocations: 0.7193 MB / 457.9 MB, free: 10.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.3026, allocations: 8 kB / 457.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.3026, allocations: 15.98 kB / 457.9 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/0.3027, allocations: 20.66 kB / 457.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006363/0.3033, allocations: 203.6 kB / 458.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.527e-05/0.3033, allocations: 23.92 kB / 458.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.3037, allocations: 31.98 kB / 458.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/0.3037, allocations: 40 kB / 458.2 MB, free: 10.48 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.0003344/0.3041, allocations: 229.5 kB / 458.4 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.3042, allocations: 79.48 kB / 458.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.3043, allocations: 78.67 kB / 458.6 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3043, allocations: 11.94 kB / 458.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.3043, allocations: 0 / 458.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3043, allocations: 0 / 458.6 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.3065, allocations: 1.242 MB / 459.9 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3065, allocations: 4.156 kB / 459.9 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004493/0.3069, allocations: 99.86 kB / 460 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.557e-06/0.3069, allocations: 7.938 kB / 460 MB, free: 8.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.307, allocations: 15.98 kB / 460 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.307, allocations: 4 kB / 460 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.307, allocations: 0 / 460 MB, free: 8.637 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3081, allocations: 0.7168 MB / 460.7 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.3082, allocations: 59.48 kB / 460.8 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.238e-05/0.3083, allocations: 20.03 kB / 460.8 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002797/0.3085, allocations: 23.92 kB / 460.8 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/0.3086, allocations: 23.95 kB / 460.8 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.3086, allocations: 19.98 kB / 460.8 MB, free: 7.742 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005202/0.3092, allocations: 419 kB / 461.3 MB, free: 7.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3092, allocations: 4 kB / 461.3 MB, free: 7.336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006791/0.3098, allocations: 140 kB / 461.4 MB, free: 7.199 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.001367/0.3112, allocations: 1.258 MB / 462.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008718/0.3121, allocations: 425.4 kB / 463.1 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3121, allocations: 0 / 463.1 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.3124, allocations: 146.5 kB / 463.2 MB, free: 5.348 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005522/0.3129, allocations: 67.3 kB / 463.3 MB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008623/0.3215, allocations: 6.158 MB / 469.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.322, allocations: 417.4 kB / 469.8 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002694/0.3223, allocations: 98.05 kB / 469.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004808/0.3227, allocations: 391.3 kB / 470.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.462e-06/0.3227, allocations: 0 / 470.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04421/0.367, allocations: 12.67 MB / 483 MB, free: 1.285 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.37, allocations: 0 / 483 MB, free: 1.285 MB / 382.1 MB " [Timeout remaining time 649] (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.060782849992393]