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.0011/0.0011, allocations: 105.5 kB / 18.95 MB, free: 1.184 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.001366/0.001366, allocations: 210.6 kB / 22.24 MB, free: 3.586 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.029/1.029, allocations: 230.6 MB / 256 MB, free: 9.582 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.8203/0.8203, allocations: 203.8 MB / 0.5042 GB, free: 10.42 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.001004/0.001004, allocations: 72.19 kB / 0.7182 GB, free: 4.023 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5347/0.5357, allocations: 102 MB / 0.8178 GB, free: 1.035 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.001893/0.5376, allocations: 1.548 MB / 0.8193 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003005/0.5379, allocations: 120.4 kB / 0.8194 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.848e-05/0.538, allocations: 3.938 kB / 0.8194 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.000118/0.5381, allocations: 10.23 kB / 0.8194 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 1.978e-05/0.5381, allocations: 9.734 kB / 0.8194 GB, free: 15.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.5384, allocations: 31 kB / 0.8195 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.932e-05/0.5384, allocations: 45.8 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.5386, allocations: 26.73 kB / 0.8195 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.134e-05/0.5386, allocations: 24.56 kB / 0.8196 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.335e-05/0.5387, allocations: 28.19 kB / 0.8196 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.5387, allocations: 3.344 kB / 0.8196 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.868e-05/0.5388, allocations: 22.3 kB / 0.8196 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.106e-05/0.5388, allocations: 17.27 kB / 0.8196 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.037e-05/0.5388, allocations: 27.09 kB / 0.8197 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.539, allocations: 60.42 kB / 0.8197 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.539, allocations: 0 / 0.8197 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.495e-06/0.539, allocations: 0.75 kB / 0.8197 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.539, allocations: 0 / 0.8197 GB, free: 15.75 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.0004005/0.5394, allocations: 307.4 kB / 0.82 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.5394, allocations: 9.688 kB / 0.82 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.044e-05/0.5394, allocations: 36.16 kB / 0.8201 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.5395, allocations: 13.08 kB / 0.8201 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000137/0.5396, allocations: 125.7 kB / 0.8202 GB, free: 15.28 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.5396, allocations: 10.59 kB / 0.8202 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.5396, allocations: 2.469 kB / 0.8202 GB, free: 15.27 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002236/0.5399, allocations: 87.75 kB / 0.8203 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.5399, allocations: 3.938 kB / 0.8203 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.5399, allocations: 0 / 0.8203 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.5399, allocations: 0.6562 kB / 0.8203 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.54, allocations: 83.45 kB / 0.8204 GB, free: 15.21 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003951/0.5404, allocations: 287.7 kB / 0.8206 GB, free: 14.95 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.5406, allocations: 56.69 kB / 0.8207 GB, free: 14.92 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.434e-05/0.5407, allocations: 50.5 kB / 0.8207 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.5407, allocations: 2.969 kB / 0.8207 GB, free: 14.89 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.5407, allocations: 32.14 kB / 0.8208 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.5407, allocations: 0 / 0.8208 GB, free: 14.86 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003313/0.5411, allocations: 136 kB / 0.8209 GB, free: 14.81 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.5411, allocations: 52.02 kB / 0.821 GB, free: 14.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.71e-05/0.5412, allocations: 119.6 kB / 0.8211 GB, free: 14.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.739e-06/0.5412, allocations: 27.73 kB / 0.8211 GB, free: 14.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.983e-05/0.5412, allocations: 97.2 kB / 0.8212 GB, free: 14.51 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.5412, allocations: 8.703 kB / 0.8212 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.5412, allocations: 13.58 kB / 0.8212 GB, free: 14.49 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.486e-05/0.5413, allocations: 324 kB / 0.8215 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.091e-05/0.5414, allocations: 35.94 kB / 0.8215 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.002e-05/0.5415, allocations: 37.69 kB / 0.8216 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.5416, allocations: 70.94 kB / 0.8217 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5416, allocations: 0 / 0.8217 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001811/0.5418, allocations: 111.4 kB / 0.8218 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.5418, allocations: 10.16 kB / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.5418, allocations: 0 / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.5418, allocations: 0 / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.079e-05/0.5419, allocations: 21.38 kB / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.5419, allocations: 1.938 kB / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.625e-05/0.5419, allocations: 8.922 kB / 0.8218 GB, free: 14.08 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/0.542, allocations: 5.547 kB / 0.8218 GB, free: 14.07 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.87e-05/0.542, allocations: 125.3 kB / 0.8219 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.287e-05/0.542, allocations: 5.984 kB / 0.8219 GB, free: 13.95 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002162/0.5423, allocations: 110.3 kB / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.5423, allocations: 1.391 kB / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.5423, allocations: 3.984 kB / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.5423, allocations: 0 / 0.822 GB, free: 13.89 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.5424, allocations: 145.5 kB / 0.8222 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.5424, allocations: 9.625 kB / 0.8222 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.777e-05/0.5424, allocations: 14.98 kB / 0.8222 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.5424, allocations: 1.078 kB / 0.8222 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.5424, allocations: 1.281 kB / 0.8222 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.5424, allocations: 0 / 0.8222 GB, free: 13.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5424, allocations: 3.938 kB / 0.8222 GB, free: 13.71 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002087/0.5427, allocations: 204.4 kB / 0.8224 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002201/0.5429, allocations: 10.86 kB / 0.8224 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.19e-05/0.5429, allocations: 1.531 kB / 0.8224 GB, free: 13.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.134e-05/0.5429, allocations: 13.94 kB / 0.8224 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-05/0.543, allocations: 5.188 kB / 0.8224 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.543, allocations: 2.438 kB / 0.8224 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.454e-05/0.543, allocations: 90.89 kB / 0.8225 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.543, allocations: 0 / 0.8225 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001549/0.5432, allocations: 12.72 kB / 0.8225 GB, free: 13.47 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.0004112/0.5436, allocations: 0.7436 MB / 0.8233 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001894/0.5438, allocations: 74.39 kB / 0.8233 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.5438, allocations: 1.344 kB / 0.8233 GB, free: 12.78 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.018e-05/0.5438, allocations: 42.55 kB / 0.8234 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.5441, allocations: 4.938 kB / 0.8234 GB, free: 12.77 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.5452, allocations: 1.432 MB / 0.8248 GB, free: 11.54 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.369e-05/0.5453, allocations: 73.91 kB / 0.8248 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.012e-05/0.5453, allocations: 6.281 kB / 0.8249 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.966e-05/0.5453, allocations: 19.3 kB / 0.8249 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of SimCode: time 6.82e-07/0.5453, allocations: 0 / 0.8249 GB, free: 11.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01654/0.5619, allocations: 2.392 MB / 0.8272 GB, free: 10.56 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.398/6.96, allocations: 0 / 0.8272 GB, free: 10.56 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.090612863190472] Failed to read output from testmodel.py, exit status != 0: 7.0409038150683045 7.052546509 6.511085697 Calling exit ...