Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.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.0008463/0.0008463, allocations: 109.9 kB / 18.93 MB, free: 1.27 MB / 13.93 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.001061/0.001061, allocations: 217.7 kB / 22.26 MB, free: 3.699 MB / 13.93 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.041/1.041, allocations: 230.6 MB / 256 MB, free: 9.785 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8105/0.8105, allocations: 203.8 MB / 0.5042 GB, free: 10.67 MB / 410.7 MB " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo) 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(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Average,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 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.0009904/0.0009904, allocations: 68.25 kB / 0.7182 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5139/0.5149, allocations: 102 MB / 0.8179 GB, free: 1.27 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.001861/0.5167, allocations: 1.57 MB / 0.8194 GB, free: 184 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002719/0.517, allocations: 124.8 kB / 0.8195 GB, free: 100 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.889e-05/0.5171, allocations: 3.938 kB / 0.8195 GB, free: 96 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.5172, allocations: 6.188 kB / 0.8195 GB, free: 92 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 2.076e-05/0.5172, allocations: 16.42 kB / 0.8195 GB, free: 80 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002266/0.5174, allocations: 28.03 kB / 0.8196 GB, free: 68 kB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.608e-05/0.5175, allocations: 54.09 kB / 0.8196 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.992e-05/0.5176, allocations: 18.12 kB / 0.8196 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.01e-05/0.5177, allocations: 28.28 kB / 0.8197 GB, free: 28 kB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.563e-05/0.5177, allocations: 33 kB / 0.8197 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.5177, allocations: 2.375 kB / 0.8197 GB, free: 12 kB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.492e-05/0.5178, allocations: 14.28 kB / 0.8197 GB, free: 8 kB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.5179, allocations: 21.23 kB / 0.8197 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.514e-05/0.5179, allocations: 26.88 kB / 0.8198 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.518, allocations: 60.2 kB / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.518, allocations: 0 / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.924e-06/0.518, allocations: 0 / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.518, allocations: 0 / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003616/0.5184, allocations: 310.5 kB / 0.8201 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.5184, allocations: 11.44 kB / 0.8201 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.807e-05/0.5185, allocations: 36.53 kB / 0.8202 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.336e-05/0.5185, allocations: 7.984 kB / 0.8202 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.5186, allocations: 130.2 kB / 0.8203 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.5186, allocations: 5.719 kB / 0.8203 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.5186, allocations: 4.438 kB / 0.8203 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.5188, allocations: 86.8 kB / 0.8204 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.5188, allocations: 3.938 kB / 0.8204 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.5188, allocations: 0 / 0.8204 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.5188, allocations: 0.6562 kB / 0.8204 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001691/0.519, allocations: 87.48 kB / 0.8205 GB, free: 15.4 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003623/0.5194, allocations: 289.5 kB / 0.8207 GB, free: 15.15 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.5195, allocations: 65.14 kB / 0.8208 GB, free: 15.11 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.258e-05/0.5196, allocations: 40 kB / 0.8208 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.5196, allocations: 0.5625 kB / 0.8208 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.5196, allocations: 34.52 kB / 0.8209 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.5196, allocations: 0 / 0.8209 GB, free: 15.06 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004439/0.5201, allocations: 137.6 kB / 0.821 GB, free: 15.01 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.945e-05/0.5201, allocations: 55.95 kB / 0.8211 GB, free: 14.94 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.286e-05/0.5202, allocations: 121.9 kB / 0.8212 GB, free: 14.83 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.5202, allocations: 25.7 kB / 0.8212 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.357e-05/0.5202, allocations: 98.11 kB / 0.8213 GB, free: 14.71 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/0.5202, allocations: 9.172 kB / 0.8213 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.706e-05/0.5203, allocations: 18.8 kB / 0.8213 GB, free: 14.68 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.448e-05/0.5203, allocations: 317 kB / 0.8216 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.024e-05/0.5204, allocations: 33.75 kB / 0.8217 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.243e-05/0.5205, allocations: 32.22 kB / 0.8217 GB, free: 14.36 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.5206, allocations: 85.28 kB / 0.8218 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.5206, allocations: 0 / 0.8218 GB, free: 14.33 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001785/0.5208, allocations: 108.7 kB / 0.8219 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.5208, allocations: 7.453 kB / 0.8219 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5208, allocations: 0 / 0.8219 GB, free: 14.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.5209, allocations: 4 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.625e-05/0.5209, allocations: 16.45 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.5209, allocations: 0 / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.829e-05/0.521, allocations: 20.33 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.521, allocations: 6.938 kB / 0.8219 GB, free: 14.26 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (3): * Single equations (assignments): 3 * 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 5.894e-05/0.5211, allocations: 113.4 kB / 0.822 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.5211, allocations: 7.859 kB / 0.822 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002135/0.5213, allocations: 116.7 kB / 0.8222 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.5213, allocations: 0.6562 kB / 0.8222 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.5213, allocations: 2 kB / 0.8222 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.5213, allocations: 0 / 0.8222 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.5214, allocations: 154.4 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.5214, allocations: 0 / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.176e-05/0.5215, allocations: 19.48 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.5215, allocations: 0.7031 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-06/0.5215, allocations: 0 / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.5215, allocations: 1.344 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.5215, allocations: 0.6094 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001828/0.5216, allocations: 202.5 kB / 0.8225 GB, free: 13.76 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 7.515e-06/0.5217, allocations: 10.16 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.5217, allocations: 1.891 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.846e-05/0.5217, allocations: 11.47 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.5217, allocations: 8.453 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.314e-06/0.5218, allocations: 0.7969 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.191e-05/0.5218, allocations: 93.97 kB / 0.8226 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of sort global known variables: time 6e-08/0.5218, allocations: 0 / 0.8226 GB, free: 13.67 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001537/0.5219, allocations: 16.97 kB / 0.8227 GB, free: 13.67 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (3): * Single equations (assignments): 3 * 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.0003681/0.5223, allocations: 0.7334 MB / 0.8234 GB, free: 12.99 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001857/0.5225, allocations: 80.77 kB / 0.8234 GB, free: 12.97 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.5225, allocations: 0 / 0.8234 GB, free: 12.97 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.359e-05/0.5226, allocations: 41.88 kB / 0.8235 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002157/0.5228, allocations: 9.828 kB / 0.8235 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.5239, allocations: 1.43 MB / 0.8249 GB, free: 11.73 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000168/0.5241, allocations: 0.6887 MB / 0.8256 GB, free: 11.03 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.801e-05/0.5241, allocations: 16.16 kB / 0.8256 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.536e-05/0.5242, allocations: 20.14 kB / 0.8256 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of SimCode: time 4.91e-07/0.5242, allocations: 0 / 0.8256 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01376/0.5379, allocations: 1.937 MB / 0.8275 GB, free: 10.55 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.63/7.167, allocations: 5.656 kB / 0.8275 GB, free: 10.55 MB / 0.6198 GB " [Timeout remaining time 653] (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Math_Examples_Average.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.327822753926739] Failed to read output from testmodel.py, exit status != 0: 7.243687928887084 7.25515148 6.734836913 Calling exit ...