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.001188/0.001188, 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.001407/0.001407, allocations: 221.7 kB / 22.26 MB, free: 3.695 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.997/0.997, allocations: 230.6 MB / 256 MB, free: 9.801 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.8107/0.8107, allocations: 203.8 MB / 0.5042 GB, free: 10.76 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.001221/0.001221, allocations: 67.98 kB / 0.7182 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4931/0.4943, allocations: 102 MB / 0.8179 GB, free: 1.262 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Average): time 0.001937/0.4963, allocations: 1.563 MB / 0.8194 GB, free: 180 kB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002755/0.4965, allocations: 126.5 kB / 0.8195 GB, free: 92 kB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.779e-05/0.4966, allocations: 5.188 kB / 0.8195 GB, free: 88 kB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.000115/0.4967, allocations: 6.375 kB / 0.8195 GB, free: 84 kB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 1.741e-05/0.4967, allocations: 10.55 kB / 0.8195 GB, free: 76 kB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.497, allocations: 29.22 kB / 0.8196 GB, free: 64 kB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 9.41e-05/0.4971, allocations: 53.36 kB / 0.8196 GB, free: 44 kB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.4972, allocations: 15.66 kB / 0.8196 GB, free: 40 kB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.512e-05/0.4972, allocations: 30.67 kB / 0.8197 GB, free: 24 kB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.895e-05/0.4973, allocations: 38.16 kB / 0.8197 GB, free: 4 kB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.4973, allocations: 4 kB / 0.8197 GB, free: 4 kB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6e-05/0.4974, allocations: 9.422 kB / 0.8197 GB, free: 4 kB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.226e-05/0.4974, allocations: 19.22 kB / 0.8197 GB, free: 15.99 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.641e-05/0.4975, allocations: 24 kB / 0.8197 GB, free: 15.97 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.4976, allocations: 64.3 kB / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.4976, allocations: 0.7031 kB / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4976, allocations: 3.938 kB / 0.8198 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.4976, 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.0004066/0.498, allocations: 306.3 kB / 0.8201 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.4981, allocations: 9.625 kB / 0.8201 GB, free: 15.66 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.09e-05/0.4981, allocations: 38.52 kB / 0.8202 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.684e-05/0.4981, allocations: 7.703 kB / 0.8202 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001325/0.4983, allocations: 133.3 kB / 0.8203 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.4983, allocations: 4.375 kB / 0.8203 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.4983, allocations: 3.219 kB / 0.8203 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001954/0.4985, allocations: 89.38 kB / 0.8204 GB, free: 15.42 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.4985, allocations: 3.938 kB / 0.8204 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.796e-06/0.4985, allocations: 0 / 0.8204 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.4985, allocations: 5.5 kB / 0.8204 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001633/0.4987, allocations: 84.09 kB / 0.8205 GB, free: 15.39 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003952/0.4991, allocations: 294.8 kB / 0.8207 GB, free: 15.14 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001395/0.4992, allocations: 59.89 kB / 0.8208 GB, free: 15.1 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.155e-05/0.4993, allocations: 42.2 kB / 0.8208 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.4993, allocations: 3 kB / 0.8208 GB, free: 15.09 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.4994, allocations: 32.95 kB / 0.8209 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.543e-06/0.4994, allocations: 0 / 0.8209 GB, free: 15.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003702/0.4997, allocations: 140.1 kB / 0.821 GB, free: 15 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.4998, allocations: 52.16 kB / 0.8211 GB, free: 14.93 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.79e-05/0.4999, allocations: 119.9 kB / 0.8212 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.4999, allocations: 25.7 kB / 0.8212 GB, free: 14.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.346e-05/0.4999, allocations: 95.55 kB / 0.8213 GB, free: 14.7 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.549e-05/0.5, allocations: 13.66 kB / 0.8213 GB, free: 14.69 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-05/0.5, allocations: 18.75 kB / 0.8213 GB, free: 14.67 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.5001, allocations: 318.2 kB / 0.8216 GB, free: 14.35 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.164e-05/0.5002, allocations: 37.3 kB / 0.8217 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.26e-05/0.5003, allocations: 36.17 kB / 0.8217 GB, free: 14.34 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.5004, allocations: 76.53 kB / 0.8218 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5004, allocations: 0 / 0.8218 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001941/0.5006, allocations: 102.1 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.5006, allocations: 7.594 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.5006, allocations: 0.75 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.5007, allocations: 4 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.036e-05/0.5007, allocations: 18.98 kB / 0.8219 GB, free: 14.27 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.5007, allocations: 3.938 kB / 0.8219 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.16e-05/0.5008, allocations: 16.56 kB / 0.8219 GB, free: 14.26 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.441e-05/0.5008, allocations: 6.531 kB / 0.8219 GB, free: 14.25 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.948e-05/0.5009, allocations: 113.4 kB / 0.822 GB, free: 14.14 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.5009, allocations: 6.578 kB / 0.822 GB, free: 14.13 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002433/0.5011, allocations: 120.4 kB / 0.8222 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.5011, allocations: 0 / 0.8222 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.5012, allocations: 384 / 0.8222 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.5012, allocations: 0.6562 kB / 0.8222 GB, free: 14.07 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.5013, allocations: 148.2 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5013, allocations: 2.125 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.989e-05/0.5014, allocations: 15.8 kB / 0.8223 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.5014, allocations: 7.984 kB / 0.8223 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.5014, allocations: 0.5156 kB / 0.8223 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.5014, allocations: 6.562 kB / 0.8223 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5014, allocations: 0.75 kB / 0.8223 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002085/0.5016, allocations: 197.5 kB / 0.8225 GB, free: 13.75 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.148e-05/0.5016, allocations: 16.81 kB / 0.8225 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.5016, allocations: 4 kB / 0.8225 GB, free: 13.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.989e-05/0.5017, allocations: 14.53 kB / 0.8226 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.5017, allocations: 3.125 kB / 0.8226 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.5017, allocations: 3.812 kB / 0.8226 GB, free: 13.73 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.021e-05/0.5017, allocations: 92.45 kB / 0.8226 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5e-08/0.5017, allocations: 0 / 0.8226 GB, free: 13.66 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001571/0.5019, allocations: 13.12 kB / 0.8227 GB, free: 13.65 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.0004671/0.5024, allocations: 0.7363 MB / 0.8234 GB, free: 12.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002107/0.5026, allocations: 78.77 kB / 0.8235 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5026, allocations: 0 / 0.8235 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.977e-05/0.5027, allocations: 39.77 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.0002658/0.5029, allocations: 10.09 kB / 0.8235 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.5042, allocations: 1.427 MB / 0.8249 GB, free: 11.71 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.5044, allocations: 0.6878 MB / 0.8256 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.993e-05/0.5045, allocations: 11.5 kB / 0.8256 GB, free: 11.02 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.439e-05/0.5045, allocations: 22.23 kB / 0.8256 GB, free: 11 MB / 0.6198 GB Notification: Performance of SimCode: time 5.31e-07/0.5045, allocations: 0 / 0.8256 GB, free: 11 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.5225, allocations: 1.94 MB / 0.8275 GB, free: 10.55 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.629/7.152, allocations: 1.25 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 & /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.110200565075502] Failed to read output from testmodel.py, exit status != 0: 7.232042178045958 7.244748323 6.745040055 Calling exit ...