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.0016/0.0016, allocations: 112.2 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.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.002022/0.002022, allocations: 180.5 kB / 23.72 MB, free: 4.699 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.442/1.442, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.001549/0.001549, allocations: 55.91 kB / 370.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2689/0.2705, allocations: 52.18 MB / 422.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007169/0.2777, allocations: 5.412 MB / 428.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002934/0.2806, allocations: 1.457 MB / 429.5 MB, free: 7.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005205/0.2811, allocations: 31.75 kB / 429.6 MB, free: 7.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005395/0.2817, allocations: 221.7 kB / 429.8 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005789/0.2822, allocations: 198 kB / 430 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008603/0.2831, allocations: 399.2 kB / 430.4 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.2844, allocations: 1.119 MB / 431.5 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005705/0.285, allocations: 336.9 kB / 431.8 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005099/0.2855, allocations: 422.3 kB / 432.2 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000519/0.286, allocations: 425.6 kB / 432.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.2861, allocations: 84 kB / 432.7 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.2863, allocations: 99.94 kB / 432.8 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.2865, allocations: 215.1 kB / 433 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000435/0.2869, allocations: 0.4971 MB / 433.5 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001284/0.2882, allocations: 1.174 MB / 434.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.957e-06/0.2882, allocations: 8 kB / 434.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2882, allocations: 0 / 434.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.2882, allocations: 0 / 434.7 MB, free: 2.457 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.002101/0.2903, allocations: 1.267 MB / 436 MB, free: 1.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.2904, allocations: 12.03 kB / 436 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.2906, allocations: 152.2 kB / 436.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.2908, allocations: 135.2 kB / 436.3 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001143/0.2919, allocations: 0.5665 MB / 436.8 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.81e-05/0.292, allocations: 73.94 kB / 436.9 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.2921, allocations: 104 kB / 437 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.2938, allocations: 1.023 MB / 438 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.541e-05/0.2939, allocations: 11.94 kB / 438 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.064e-05/0.2939, allocations: 44 kB / 438.1 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.294, allocations: 28 kB / 438.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.2952, allocations: 0.5578 MB / 438.7 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005377/0.3005, allocations: 5.42 MB / 444.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.3011, allocations: 228.9 kB / 444.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003248/0.3014, allocations: 145.7 kB / 444.4 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.3016, allocations: 15.92 kB / 444.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.3016, allocations: 34.56 kB / 444.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.315e-06/0.3016, allocations: 0 / 444.5 MB, free: 8.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.004027/0.3056, allocations: 1.592 MB / 446.1 MB, free: 6.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.325e-05/0.3057, allocations: 85.05 kB / 446.2 MB, free: 6.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008065/0.3065, allocations: 0.6373 MB / 446.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.168e-05/0.3066, allocations: 29.7 kB / 446.8 MB, free: 5.715 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005076/0.3071, allocations: 0.6161 MB / 447.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001453/0.3072, allocations: 158.7 kB / 447.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.3074, allocations: 138.6 kB / 447.7 MB, free: 4.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.3076, allocations: 382.8 kB / 448.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/0.308, allocations: 153.9 kB / 448.3 MB, free: 4.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006393/0.3086, allocations: 0.4894 MB / 448.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.3096, allocations: 0.692 MB / 449.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3096, allocations: 8 kB / 449.5 MB, free: 2.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001334/0.311, allocations: 0.7117 MB / 450.2 MB, free: 2.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.311, allocations: 9.406 kB / 450.2 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.311, allocations: 12 kB / 450.2 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/0.311, allocations: 16 kB / 450.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006575/0.3117, allocations: 208.1 kB / 450.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.883e-05/0.3117, allocations: 27.92 kB / 450.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.3121, allocations: 28 kB / 450.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.793e-05/0.3121, allocations: 39.98 kB / 450.5 MB, free: 1.699 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.0003912/0.3125, allocations: 229.5 kB / 450.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.3126, allocations: 79.48 kB / 450.8 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000153/0.3128, allocations: 74.62 kB / 450.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.3128, allocations: 7.938 kB / 450.9 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.3128, allocations: 4 kB / 450.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.3128, allocations: 4 kB / 450.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.3151, allocations: 1.28 MB / 452.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.3151, allocations: 4 kB / 452.2 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004729/0.3156, allocations: 111.8 kB / 452.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/0.3156, allocations: 7.938 kB / 452.3 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.3156, allocations: 8 kB / 452.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.3156, allocations: 160 / 452.3 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.3156, allocations: 11.98 kB / 452.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.3167, allocations: 0.7012 MB / 453 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.3168, allocations: 75.45 kB / 453.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.822e-05/0.3169, allocations: 8 kB / 453.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002932/0.3172, allocations: 19.98 kB / 453.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.3172, allocations: 35.94 kB / 453.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.453e-05/0.3173, allocations: 12 kB / 453.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005248/0.3178, allocations: 423 kB / 453.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3178, allocations: 0 / 453.6 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006982/0.3185, allocations: 140 kB / 453.7 MB, free: 14.38 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.001386/0.3199, allocations: 1.258 MB / 455 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009366/0.3208, allocations: 420.8 kB / 455.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.3208, allocations: 0 / 455.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002972/0.3211, allocations: 145.2 kB / 455.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005826/0.3217, allocations: 75.59 kB / 455.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00885/0.3306, allocations: 6.133 MB / 461.7 MB, free: 5.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006616/0.3312, allocations: 1 MB / 462.7 MB, free: 4.805 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002619/0.3315, allocations: 94.02 kB / 462.8 MB, free: 4.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004582/0.3319, allocations: 387.3 kB / 463.2 MB, free: 4.332 MB / 366.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3319, allocations: 0 / 463.2 MB, free: 4.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04328/0.3752, allocations: 12.29 MB / 475.5 MB, free: 8.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.07, allocations: 4 kB / 475.5 MB, free: 8.199 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.84305744700032]