Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001845/0.001845, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.001477/0.001477, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 55.92 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2637, allocations: 49.16 MB / 396.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.00663/0.2703, allocations: 5.376 MB / 401.8 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004716/0.2751, allocations: 1.481 MB / 403.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001375/0.2764, allocations: 37.06 kB / 403.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007095/0.2771, allocations: 219.2 kB / 403.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001151/0.2783, allocations: 193.9 kB / 403.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00123/0.2795, allocations: 415.7 kB / 404.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001474/0.281, allocations: 1.124 MB / 405.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000557/0.2816, allocations: 334.9 kB / 405.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.2821, allocations: 411.8 kB / 405.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004796/0.2826, allocations: 438.4 kB / 406.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.2828, allocations: 86.31 kB / 406.4 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.2829, allocations: 97.03 kB / 406.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.2831, allocations: 209.1 kB / 406.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003667/0.2835, allocations: 0.4975 MB / 407.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.2847, allocations: 1.181 MB / 408.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2847, allocations: 1.375 kB / 408.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2847, allocations: 0 / 408.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.181e-05/0.2848, allocations: 0 / 408.4 MB, free: 1.23 MB / 318.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.001737/0.2865, allocations: 1.265 MB / 409.7 MB, free: 396 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.2865, allocations: 13.58 kB / 409.7 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001608/0.2867, allocations: 152.7 kB / 409.9 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.2868, allocations: 132.6 kB / 410 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.2879, allocations: 0.5711 MB / 410.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.139e-05/0.288, allocations: 78.06 kB / 410.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.2881, allocations: 100.3 kB / 410.7 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001934/0.2901, allocations: 1.028 MB / 411.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.2901, allocations: 6.531 kB / 411.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.397e-05/0.2902, allocations: 51.78 kB / 411.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.635e-05/0.2902, allocations: 27.12 kB / 411.8 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.2916, allocations: 0.5612 MB / 412.4 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006469/0.298, allocations: 5.409 MB / 417.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006423/0.2987, allocations: 226.4 kB / 418 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003808/0.299, allocations: 141.8 kB / 418.2 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.2992, allocations: 18.52 kB / 418.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.2992, allocations: 40.88 kB / 418.2 MB, free: 9.465 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.033e-06/0.2992, allocations: 0.9375 kB / 418.2 MB, free: 9.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004116/0.3033, allocations: 1.574 MB / 419.8 MB, free: 8.434 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.3034, allocations: 81.83 kB / 419.9 MB, free: 8.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000884/0.3043, allocations: 0.6428 MB / 420.5 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.3043, allocations: 36.39 kB / 420.6 MB, free: 7.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005011/0.3048, allocations: 0.6072 MB / 421.2 MB, free: 7.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.3049, allocations: 153.7 kB / 421.3 MB, free: 7.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.3051, allocations: 140.5 kB / 421.5 MB, free: 7.145 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002647/0.3054, allocations: 383.1 kB / 421.8 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003279/0.3057, allocations: 152.6 kB / 422 MB, free: 6.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006424/0.3063, allocations: 0.4977 MB / 422.5 MB, free: 6.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.3074, allocations: 0.7037 MB / 423.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.036e-06/0.3074, allocations: 2.719 kB / 423.2 MB, free: 5.492 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001273/0.3087, allocations: 0.7111 MB / 423.9 MB, free: 5.133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.3087, allocations: 14.59 kB / 423.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.3087, allocations: 11.62 kB / 423.9 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.741e-05/0.3087, allocations: 20.28 kB / 423.9 MB, free: 5.125 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006366/0.3094, allocations: 196.7 kB / 424.1 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.73e-05/0.3094, allocations: 23.67 kB / 424.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003962/0.3098, allocations: 34.94 kB / 424.2 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.387e-05/0.3099, allocations: 43.3 kB / 424.2 MB, free: 5.043 MB / 334.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.0003174/0.3102, allocations: 229.5 kB / 424.5 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.3103, allocations: 79.23 kB / 424.5 MB, free: 4.809 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001296/0.3104, allocations: 75.25 kB / 424.6 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.3104, allocations: 8.062 kB / 424.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3104, allocations: 5.312 kB / 424.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3104, allocations: 1.375 kB / 424.6 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.3127, allocations: 1.284 MB / 425.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.3127, allocations: 5.406 kB / 425.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000477/0.3132, allocations: 103.5 kB / 426 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.726e-06/0.3132, allocations: 8.375 kB / 426 MB, free: 3.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.809e-05/0.3132, allocations: 11.12 kB / 426 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.3132, allocations: 3.75 kB / 426 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.3132, allocations: 5.875 kB / 426 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.3143, allocations: 0.702 MB / 426.7 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.3144, allocations: 76.17 kB / 426.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.67e-05/0.3145, allocations: 12.19 kB / 426.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002988/0.3148, allocations: 20.67 kB / 426.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.3149, allocations: 33.97 kB / 426.9 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.3149, allocations: 12.72 kB / 426.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005002/0.3154, allocations: 422.9 kB / 427.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3154, allocations: 4 kB / 427.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007289/0.3161, allocations: 140.7 kB / 427.4 MB, free: 2.91 MB / 334.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.001401/0.3175, allocations: 1.245 MB / 428.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008265/0.3183, allocations: 414.2 kB / 429.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3183, allocations: 4.125 kB / 429.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002838/0.3186, allocations: 151.7 kB / 429.2 MB, free: 1.316 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005604/0.3192, allocations: 71.3 kB / 429.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008843/0.328, allocations: 6.138 MB / 435.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006757/0.3287, allocations: 1.008 MB / 436.5 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002713/0.329, allocations: 90 kB / 436.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004912/0.3295, allocations: 391.3 kB / 436.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3295, allocations: 0 / 436.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06683/0.3963, allocations: 12.29 MB / 449.2 MB, free: 12.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.28, allocations: 4 kB / 449.2 MB, free: 12.77 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.073536848998629]