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.001714/0.001714, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001871/0.001871, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.443/1.443, allocations: 207.7 MB / 235.3 MB, free: 9.801 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.002115/0.002115, allocations: 54.58 kB / 347.2 MB, free: 9.859 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2627, allocations: 49.15 MB / 396.4 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006083/0.2688, allocations: 4.711 MB / 401.1 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003113/0.2719, allocations: 1.433 MB / 402.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008715/0.2728, allocations: 37.03 kB / 402.6 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005641/0.2734, allocations: 219.1 kB / 402.8 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007363/0.2741, allocations: 202.1 kB / 403 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009476/0.275, allocations: 397.2 kB / 403.3 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001351/0.2764, allocations: 1.121 MB / 404.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005033/0.2769, allocations: 322.8 kB / 404.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005444/0.2774, allocations: 412.4 kB / 405.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005781/0.278, allocations: 381.6 kB / 405.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001584/0.2782, allocations: 83.44 kB / 405.6 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002648/0.2784, allocations: 91.56 kB / 405.7 MB, free: 3.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.2786, allocations: 211.2 kB / 405.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003393/0.2789, allocations: 404.4 kB / 406.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001331/0.2803, allocations: 1.188 MB / 407.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2803, allocations: 0 / 407.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2803, allocations: 5.312 kB / 407.5 MB, free: 2.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.108e-05/0.2803, allocations: 4 kB / 407.5 MB, free: 2.09 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.001843/0.2821, allocations: 1.265 MB / 408.8 MB, free: 1.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.2822, allocations: 13.77 kB / 408.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001574/0.2823, allocations: 152.6 kB / 409 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.2825, allocations: 140.4 kB / 409.1 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001095/0.2836, allocations: 0.5684 MB / 409.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.371e-05/0.2837, allocations: 73.47 kB / 409.7 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.2838, allocations: 100.3 kB / 409.8 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.2854, allocations: 1.081 MB / 410.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.2854, allocations: 6.344 kB / 410.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.809e-05/0.2855, allocations: 44.06 kB / 411 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.862e-05/0.2855, allocations: 26.06 kB / 411 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.2867, allocations: 0.5645 MB / 411.6 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005601/0.2923, allocations: 5.224 MB / 416.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006052/0.2929, allocations: 226.5 kB / 417 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.2932, allocations: 153.7 kB / 417.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.2933, allocations: 10.91 kB / 417.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.2933, allocations: 38.5 kB / 417.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.335e-06/0.2933, allocations: 0 / 417.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004121/0.2975, allocations: 1.586 MB / 418.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.2975, allocations: 84.61 kB / 418.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008625/0.2984, allocations: 0.6461 MB / 419.5 MB, free: 8.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.2984, allocations: 35.7 kB / 419.5 MB, free: 8.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004956/0.2989, allocations: 0.6198 MB / 420.2 MB, free: 8.293 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.2991, allocations: 153.4 kB / 420.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000195/0.2993, allocations: 139.7 kB / 420.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002204/0.2995, allocations: 384.2 kB / 420.8 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.2998, allocations: 152.4 kB / 421 MB, free: 7.633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006037/0.3004, allocations: 0.4956 MB / 421.5 MB, free: 7.102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001033/0.3014, allocations: 0.7132 MB / 422.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.138e-06/0.3014, allocations: 3.625 kB / 422.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001282/0.3027, allocations: 0.7113 MB / 422.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.3028, allocations: 14.31 kB / 422.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/0.3028, allocations: 11.75 kB / 422.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.152e-05/0.3028, allocations: 15.69 kB / 422.9 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006583/0.3035, allocations: 200.6 kB / 423.1 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.349e-05/0.3035, allocations: 24.42 kB / 423.2 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003842/0.3039, allocations: 33.86 kB / 423.2 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.3039, allocations: 41 kB / 423.2 MB, free: 5.992 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.0003389/0.3043, allocations: 225.4 kB / 423.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.3044, allocations: 79.08 kB / 423.5 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.3045, allocations: 83.78 kB / 423.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.3045, allocations: 8.125 kB / 423.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.527e-06/0.3045, allocations: 0 / 423.6 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.3045, allocations: 5.234 kB / 423.6 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.3067, allocations: 1.228 MB / 424.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3067, allocations: 1.125 kB / 424.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004775/0.3072, allocations: 104 kB / 425 MB, free: 4.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.3072, allocations: 7.312 kB / 425 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.751e-05/0.3073, allocations: 12.3 kB / 425 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.3073, allocations: 7.469 kB / 425 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/0.3073, allocations: 6.281 kB / 425 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.3083, allocations: 0.6976 MB / 425.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.3084, allocations: 75.83 kB / 425.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.034e-05/0.3085, allocations: 11.59 kB / 425.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.3088, allocations: 28.73 kB / 425.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.099e-05/0.3089, allocations: 30.48 kB / 425.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.3089, allocations: 13.64 kB / 425.8 MB, free: 4.176 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004863/0.3094, allocations: 423.1 kB / 426.3 MB, free: 3.938 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3094, allocations: 0 / 426.3 MB, free: 3.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000764/0.3101, allocations: 136.3 kB / 426.4 MB, free: 3.922 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.00143/0.3116, allocations: 1.264 MB / 427.7 MB, free: 2.676 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008683/0.3124, allocations: 408.6 kB / 428.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3125, allocations: 0 / 428.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000278/0.3127, allocations: 141.4 kB / 428.2 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000592/0.3133, allocations: 88.25 kB / 428.3 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008704/0.322, allocations: 6.142 MB / 434.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.3225, allocations: 409.3 kB / 434.8 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002985/0.3228, allocations: 94.02 kB / 434.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004706/0.3232, allocations: 391.3 kB / 435.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3232, allocations: 0 / 435.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05889/0.3821, allocations: 12.4 MB / 447.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.01, allocations: 0 / 447.7 MB, free: 14.05 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: 14.711230784188956]