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.001005/0.001005, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.001292/0.001292, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9072/0.9072, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.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.7418/0.7418, allocations: 154.5 MB / 413.7 MB, free: 0.8516 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [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: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 0.618 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.61e-05/2.763e-05, allocations: 2.281 kB / 0.618 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002263/0.002291, allocations: 1.541 MB / 0.6196 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.0003549/0.002646, allocations: 115.6 kB / 0.6197 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.475e-05/0.00271, allocations: 4 kB / 0.6197 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.00286, allocations: 7.922 kB / 0.6197 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 2.244e-05/0.002882, allocations: 11.88 kB / 0.6197 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.003194, allocations: 27.95 kB / 0.6197 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.003307, allocations: 63.72 kB / 0.6198 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.00346, allocations: 15.98 kB / 0.6198 GB, free: 10.83 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 7.687e-05/0.003537, allocations: 31.97 kB / 0.6198 GB, free: 10.8 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 7.973e-05/0.003616, allocations: 27.89 kB / 0.6198 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.003636, allocations: 4 kB / 0.6198 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 8.391e-05/0.00372, allocations: 8 kB / 0.6199 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 5.164e-05/0.003772, allocations: 15.98 kB / 0.6199 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.003806, allocations: 23.92 kB / 0.6199 GB, free: 10.72 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.003956, allocations: 63.78 kB / 0.62 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.003959, allocations: 0 / 0.62 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.333e-06/0.00396, allocations: 0 / 0.62 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.003966, allocations: 0 / 0.62 GB, free: 10.66 MB / 0.5417 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.0005036/0.00447, allocations: 306.1 kB / 0.6202 GB, free: 10.33 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.331e-05/0.004523, allocations: 9.469 kB / 0.6203 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.678e-05/0.00456, allocations: 30.75 kB / 0.6203 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.889e-05/0.004589, allocations: 8.891 kB / 0.6203 GB, free: 10.27 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/0.00476, allocations: 136.7 kB / 0.6204 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.004773, allocations: 8.375 kB / 0.6204 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.004782, allocations: 384 / 0.6204 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/0.004984, allocations: 86.2 kB / 0.6205 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.004992, allocations: 4.125 kB / 0.6205 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.005003, allocations: 384 / 0.6205 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.005011, allocations: 4.125 kB / 0.6205 GB, free: 10.01 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00016/0.005171, allocations: 87.91 kB / 0.6206 GB, free: 9.926 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003813/0.005552, allocations: 283.8 kB / 0.6209 GB, free: 9.605 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.005688, allocations: 58.62 kB / 0.6209 GB, free: 9.539 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.906e-05/0.005767, allocations: 44.84 kB / 0.621 GB, free: 9.492 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.716e-05/0.005804, allocations: 8 kB / 0.621 GB, free: 9.484 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.005824, allocations: 34.56 kB / 0.621 GB, free: 9.441 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.824e-06/0.005826, allocations: 3.984 kB / 0.621 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0003197/0.006146, allocations: 129.6 kB / 0.6211 GB, free: 9.305 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.006176, allocations: 51.41 kB / 0.6212 GB, free: 9.242 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.26e-05/0.006249, allocations: 121.8 kB / 0.6213 GB, free: 9.113 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.006262, allocations: 25.7 kB / 0.6213 GB, free: 9.082 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.593e-05/0.006308, allocations: 100 kB / 0.6214 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.006327, allocations: 11.91 kB / 0.6214 GB, free: 8.969 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.006354, allocations: 13.72 kB / 0.6215 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.84e-05/0.006452, allocations: 318.8 kB / 0.6218 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.452e-05/0.006527, allocations: 35.91 kB / 0.6218 GB, free: 8.594 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.351e-05/0.0066, allocations: 35.95 kB / 0.6218 GB, free: 8.559 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001372/0.006737, allocations: 76.72 kB / 0.6219 GB, free: 8.48 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.006739, allocations: 0 / 0.6219 GB, free: 8.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001646/0.006904, allocations: 105.5 kB / 0.622 GB, free: 8.371 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.006916, allocations: 4 kB / 0.622 GB, free: 8.367 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.006921, allocations: 4 kB / 0.622 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.006933, allocations: 0 / 0.622 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.685e-05/0.00701, allocations: 19.98 kB / 0.622 GB, free: 8.344 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.007016, allocations: 3.938 kB / 0.622 GB, free: 8.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.537e-05/0.007051, allocations: 15.97 kB / 0.622 GB, free: 8.324 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.624e-05/0.007067, allocations: 0 / 0.622 GB, free: 8.324 MB / 0.5417 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 6.617e-05/0.007134, allocations: 118.8 kB / 0.6222 GB, free: 8.199 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.007148, allocations: 7.953 kB / 0.6222 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002219/0.00737, allocations: 121.6 kB / 0.6223 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.007372, allocations: 0 / 0.6223 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.007379, allocations: 0 / 0.6223 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.007383, allocations: 0 / 0.6223 GB, free: 8.055 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000529/0.007912, allocations: 148.6 kB / 0.6224 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.007915, allocations: 0 / 0.6224 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.852e-05/0.007963, allocations: 15.98 kB / 0.6224 GB, free: 7.852 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.007967, allocations: 4 kB / 0.6224 GB, free: 7.848 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.007975, allocations: 0 / 0.6224 GB, free: 7.848 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.007977, allocations: 3.938 kB / 0.6224 GB, free: 7.844 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.007978, allocations: 0 / 0.6224 GB, free: 7.844 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002094/0.008187, allocations: 211.3 kB / 0.6226 GB, free: 7.621 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 9.388e-06/0.008197, allocations: 4 kB / 0.6227 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.008209, allocations: 0 / 0.6227 GB, free: 7.617 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.857e-05/0.008258, allocations: 15.98 kB / 0.6227 GB, free: 7.602 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.293e-05/0.00831, allocations: 12.41 kB / 0.6227 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.008319, allocations: 0 / 0.6227 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.161e-05/0.008361, allocations: 91.27 kB / 0.6228 GB, free: 7.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5e-08/0.008361, allocations: 0 / 0.6228 GB, free: 7.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001613/0.008522, allocations: 11.95 kB / 0.6228 GB, free: 7.488 MB / 0.5417 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.0004626/0.008985, allocations: 0.7397 MB / 0.6235 GB, free: 6.723 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001987/0.009183, allocations: 75.91 kB / 0.6236 GB, free: 6.648 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.009185, allocations: 3.938 kB / 0.6236 GB, free: 6.645 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.046e-05/0.009255, allocations: 35.97 kB / 0.6236 GB, free: 6.609 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002219/0.009477, allocations: 15.98 kB / 0.6236 GB, free: 6.594 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001091/0.01057, allocations: 1.423 MB / 0.625 GB, free: 5.09 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.929e-05/0.01062, allocations: 75.33 kB / 0.6251 GB, free: 4.996 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.935e-05/0.01065, allocations: 4 kB / 0.6251 GB, free: 4.992 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.591e-05/0.01068, allocations: 24.48 kB / 0.6251 GB, free: 4.969 MB / 0.5417 GB Notification: Performance of SimCode: time 6.51e-07/0.01068, allocations: 0 / 0.6251 GB, free: 4.969 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01556/0.02625, allocations: 2.514 MB / 0.6276 GB, free: 2.605 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.942/6.969, allocations: 14.45 kB / 0.6276 GB, free: 2.594 MB / 0.5417 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: 9.837378531694412] Failed to read output from testmodel.py, exit status != 0: 7.0494853695854545 7.057719494 7.052110279 Calling exit ...