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.001704/0.001704, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002368/0.002368, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.388/1.388, allocations: 230.6 MB / 257.5 MB, free: 7.977 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.002163/0.002163, allocations: 51.92 kB / 377.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2967, allocations: 53.35 MB / 431.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007876/0.3046, allocations: 5.445 MB / 436.6 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003182/0.3077, allocations: 1.531 MB / 438.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005443/0.3083, allocations: 35.69 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005199/0.3088, allocations: 213.8 kB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006886/0.3095, allocations: 202 kB / 438.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008717/0.3104, allocations: 427.1 kB / 439 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001524/0.3119, allocations: 1.13 MB / 440.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006094/0.3125, allocations: 332.9 kB / 440.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006884/0.3132, allocations: 418.3 kB / 440.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005181/0.3137, allocations: 429.5 kB / 441.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.3138, allocations: 84 kB / 441.4 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.3141, allocations: 112 kB / 441.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.3143, allocations: 215.1 kB / 441.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007053/0.315, allocations: 0.4893 MB / 442.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.3166, allocations: 1.186 MB / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.3166, allocations: 8 kB / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3166, allocations: 0 / 443.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.68e-05/0.3166, allocations: 0 / 443.4 MB, free: 10.57 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.002011/0.3186, allocations: 1.267 MB / 444.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3187, allocations: 12.03 kB / 444.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/0.3188, allocations: 152.2 kB / 444.8 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/0.3192, allocations: 155.1 kB / 444.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/0.3203, allocations: 0.582 MB / 445.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.24e-05/0.3204, allocations: 77.94 kB / 445.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3205, allocations: 96 kB / 445.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.3222, allocations: 1.031 MB / 446.7 MB, free: 7.008 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.075e-05/0.3222, allocations: 7.938 kB / 446.7 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.139e-05/0.3223, allocations: 44 kB / 446.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.3223, allocations: 24 kB / 446.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.3234, allocations: 0.5539 MB / 447.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005264/0.3287, allocations: 5.413 MB / 452.8 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005792/0.3293, allocations: 238.8 kB / 453 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002971/0.3296, allocations: 141.7 kB / 453.1 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.3297, allocations: 12.27 kB / 453.1 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.3297, allocations: 42.44 kB / 453.2 MB, free: 232 kB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.275e-06/0.3297, allocations: 4 kB / 453.2 MB, free: 228 kB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.003758/0.3334, allocations: 1.582 MB / 454.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.3335, allocations: 85.05 kB / 454.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007534/0.3343, allocations: 0.6451 MB / 455.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.213e-05/0.3343, allocations: 33.7 kB / 455.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004498/0.3347, allocations: 0.6239 MB / 456.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.3349, allocations: 146.8 kB / 456.3 MB, free: 13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.335, allocations: 142.5 kB / 456.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002047/0.3352, allocations: 382.8 kB / 456.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.3355, allocations: 153.9 kB / 457 MB, free: 12.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005771/0.3361, allocations: 0.4893 MB / 457.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009437/0.3371, allocations: 0.6987 MB / 458.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3371, allocations: 0 / 458.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001179/0.3382, allocations: 0.7193 MB / 458.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.3383, allocations: 12 kB / 458.9 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.3383, allocations: 12 kB / 458.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.823e-05/0.3383, allocations: 16.75 kB / 458.9 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006352/0.3389, allocations: 203.6 kB / 459.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.459e-05/0.339, allocations: 23.92 kB / 459.1 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003347/0.3393, allocations: 32 kB / 459.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.848e-05/0.3394, allocations: 43.98 kB / 459.2 MB, free: 9.754 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.0002865/0.3396, allocations: 221.5 kB / 459.4 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3398, allocations: 87.47 kB / 459.5 MB, free: 9.441 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000125/0.3399, allocations: 82.67 kB / 459.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.3399, allocations: 11.88 kB / 459.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3399, allocations: 0 / 459.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.718e-06/0.3399, allocations: 0 / 459.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.342, allocations: 1.288 MB / 460.9 MB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.782e-06/0.342, allocations: 4 kB / 460.9 MB, free: 7.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004449/0.3425, allocations: 99.86 kB / 461 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.3425, allocations: 4.094 kB / 461 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.3425, allocations: 19.94 kB / 461 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3425, allocations: 4 kB / 461 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.3425, allocations: 7.938 kB / 461 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009926/0.3435, allocations: 0.7091 MB / 461.7 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.871e-05/0.3436, allocations: 63.48 kB / 461.8 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.755e-05/0.3436, allocations: 12 kB / 461.8 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.3439, allocations: 23.98 kB / 461.8 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.344, allocations: 35.88 kB / 461.9 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.344, allocations: 12 kB / 461.9 MB, free: 6.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004789/0.3445, allocations: 427 kB / 462.3 MB, free: 6.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3445, allocations: 0 / 462.3 MB, free: 6.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006081/0.3451, allocations: 140 kB / 462.4 MB, free: 6.426 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.001325/0.3464, allocations: 1.246 MB / 463.7 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007917/0.3472, allocations: 429.8 kB / 464.1 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3472, allocations: 0 / 464.1 MB, free: 4.723 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002707/0.3475, allocations: 148.2 kB / 464.2 MB, free: 4.578 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.348, allocations: 78.23 kB / 464.3 MB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008374/0.3564, allocations: 6.154 MB / 470.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006958/0.3571, allocations: 1.004 MB / 471.5 MB, free: 12.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002675/0.3574, allocations: 94.05 kB / 471.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004858/0.3579, allocations: 395.3 kB / 472 MB, free: 12.34 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3579, allocations: 0 / 472 MB, free: 12.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04342/0.4013, allocations: 12.35 MB / 484.3 MB, free: 172 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.86, allocations: 4.062 kB / 484.3 MB, free: 168 kB / 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.502035929002886]