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.001088/0.001088, 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.0008933/0.0008933, allocations: 207.1 kB / 22.24 MB, free: 3.582 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 0.9644/0.9644, allocations: 230.6 MB / 256 MB, free: 9.605 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.7802/0.7802, allocations: 203.8 MB / 0.5042 GB, free: 10.49 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.0009363/0.0009363, allocations: 70.98 kB / 0.7182 GB, free: 4.062 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5521/0.553, allocations: 102 MB / 0.8178 GB, free: 1.051 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.002009/0.555, allocations: 1.55 MB / 0.8193 GB, free: 15.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002875/0.5553, allocations: 115.2 kB / 0.8194 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.647e-05/0.5554, allocations: 4.906 kB / 0.8194 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.5555, allocations: 13.7 kB / 0.8194 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 1.849e-05/0.5555, allocations: 4.641 kB / 0.8194 GB, free: 15.89 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.5558, allocations: 33.61 kB / 0.8195 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.38e-05/0.5559, allocations: 50.45 kB / 0.8195 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.556, allocations: 26.11 kB / 0.8195 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.035e-05/0.556, allocations: 21.73 kB / 0.8196 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.905e-05/0.5561, allocations: 34.48 kB / 0.8196 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.5561, allocations: 3.906 kB / 0.8196 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.578e-05/0.5562, allocations: 16.59 kB / 0.8196 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.395e-05/0.5562, allocations: 19.47 kB / 0.8196 GB, free: 15.8 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.5562, allocations: 20.69 kB / 0.8197 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.5564, allocations: 56.72 kB / 0.8197 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.5564, allocations: 0 / 0.8197 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.694e-06/0.5564, allocations: 3.969 kB / 0.8197 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.5564, allocations: 0 / 0.8197 GB, free: 15.77 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.0003926/0.5568, allocations: 309.6 kB / 0.82 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.5568, allocations: 8.281 kB / 0.82 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.057e-05/0.5568, allocations: 38.73 kB / 0.8201 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.5569, allocations: 6.891 kB / 0.8201 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.557, allocations: 124.9 kB / 0.8202 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.557, allocations: 8.312 kB / 0.8202 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.536e-06/0.557, allocations: 3.125 kB / 0.8202 GB, free: 15.29 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001863/0.5572, allocations: 86.05 kB / 0.8203 GB, free: 15.25 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.5572, allocations: 3.938 kB / 0.8203 GB, free: 15.24 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.5572, allocations: 11.55 kB / 0.8203 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.5572, allocations: 0 / 0.8203 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.5574, allocations: 79.42 kB / 0.8204 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003678/0.5578, allocations: 286.3 kB / 0.8206 GB, free: 14.96 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.5579, allocations: 61.84 kB / 0.8207 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.231e-05/0.558, allocations: 45.22 kB / 0.8207 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.211e-05/0.558, allocations: 4.234 kB / 0.8207 GB, free: 14.91 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.558, allocations: 31.22 kB / 0.8208 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.558, allocations: 2.562 kB / 0.8208 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003242/0.5584, allocations: 133.8 kB / 0.8209 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.537e-05/0.5584, allocations: 51.41 kB / 0.821 GB, free: 14.76 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.187e-05/0.5584, allocations: 121.5 kB / 0.8211 GB, free: 14.65 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 9.868e-06/0.5585, allocations: 25.7 kB / 0.8211 GB, free: 14.62 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.227e-05/0.5585, allocations: 101.2 kB / 0.8212 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.5585, allocations: 6.781 kB / 0.8212 GB, free: 14.52 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.496e-05/0.5585, allocations: 14.27 kB / 0.8212 GB, free: 14.5 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.633e-05/0.5586, allocations: 328.4 kB / 0.8215 GB, free: 14.18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.222e-05/0.5587, allocations: 37.34 kB / 0.8216 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.833e-05/0.5588, allocations: 34.33 kB / 0.8216 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/0.5589, allocations: 71.67 kB / 0.8217 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5589, allocations: 0 / 0.8217 GB, free: 14.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001687/0.5591, allocations: 111.2 kB / 0.8218 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.5591, allocations: 4.547 kB / 0.8218 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.5591, allocations: 0 / 0.8218 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.5591, allocations: 0.6094 kB / 0.8218 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.636e-05/0.5592, allocations: 16.97 kB / 0.8218 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.5592, allocations: 0.7969 kB / 0.8218 GB, free: 14.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.808e-05/0.5592, allocations: 16.16 kB / 0.8218 GB, free: 14.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.5593, allocations: 8.594 kB / 0.8218 GB, free: 14.09 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 6.009e-05/0.5593, allocations: 119 kB / 0.8219 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.412e-05/0.5593, allocations: 6.719 kB / 0.8219 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.5595, allocations: 111.3 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.5595, allocations: 0 / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5595, allocations: 1.25 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.5595, allocations: 4.656 kB / 0.822 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.5597, allocations: 146.7 kB / 0.8222 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.5597, allocations: 3.938 kB / 0.8222 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.493e-05/0.5597, allocations: 14.03 kB / 0.8222 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.5597, allocations: 1.844 kB / 0.8222 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.5597, allocations: 0 / 0.8222 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5597, allocations: 1.969 kB / 0.8222 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5597, allocations: 3.938 kB / 0.8222 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001976/0.5599, allocations: 207.3 kB / 0.8224 GB, free: 13.58 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-06/0.5599, allocations: 12.72 kB / 0.8224 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.086e-05/0.5599, allocations: 4 kB / 0.8224 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.827e-05/0.56, allocations: 11.02 kB / 0.8224 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.468e-05/0.56, allocations: 3.922 kB / 0.8224 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.56, allocations: 1.625 kB / 0.8224 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.48e-05/0.5601, allocations: 92.36 kB / 0.8225 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5601, allocations: 0 / 0.8225 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001595/0.5602, allocations: 17.81 kB / 0.8225 GB, free: 13.48 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.000404/0.5606, allocations: 0.7352 MB / 0.8233 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001938/0.5608, allocations: 77.56 kB / 0.8233 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.5608, allocations: 0 / 0.8233 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.288e-05/0.5609, allocations: 36.83 kB / 0.8234 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002442/0.5611, allocations: 16.19 kB / 0.8234 GB, free: 12.79 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.5623, allocations: 1.424 MB / 0.8248 GB, free: 11.55 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.458e-05/0.5624, allocations: 78.33 kB / 0.8248 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.963e-05/0.5624, allocations: 6.219 kB / 0.8249 GB, free: 11.48 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.5625, allocations: 15.48 kB / 0.8249 GB, free: 11.47 MB / 0.6198 GB Notification: Performance of SimCode: time 5.61e-07/0.5625, allocations: 4 kB / 0.8249 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01681/0.5793, allocations: 2.386 MB / 0.8272 GB, free: 10.59 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.77/7.35, allocations: 3.188 kB / 0.8272 GB, free: 10.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.229614790063351] Failed to read output from testmodel.py, exit status != 0: 7.42792190797627 7.440018154 6.881629941 Calling exit ...