Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7238/0.7238, allocations: 140.1 MB / 156 MB, free: 5.176 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009402/0.0009403, allocations: 177.3 kB / 188.5 MB, free: 15.84 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.416/1.416, allocations: 205.4 MB / 426.3 MB, free: 8.492 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008469/0.0008469, allocations: 78.42 kB / 0.4945 GB, free: 8.438 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001545/0.001545, allocations: 269.3 kB / 0.5728 GB, free: 66.24 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004777, allocations: 24 kB / 0.662 GB, free: 6.828 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3651, allocations: 79.3 MB / 0.7395 GB, free: 46.37 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4935, allocations: 107.4 MB / 0.8443 GB, free: 2.875 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.4938, allocations: 71.97 kB / 0.8444 GB, free: 2.805 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.003273/0.4971, allocations: 1.127 MB / 0.8455 GB, free: 1.668 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.483e-06/0.4971, allocations: 0 / 0.8455 GB, free: 1.668 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.4971, allocations: 4 kB / 0.8455 GB, free: 1.664 MB / 0.5105 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.0004902/0.4976, allocations: 383.3 kB / 0.8458 GB, free: 1.238 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.4977, allocations: 8.031 kB / 0.8458 GB, free: 1.23 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.856e-05/0.4977, allocations: 4.938 kB / 0.8459 GB, free: 1.227 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002035/0.4979, allocations: 196 kB / 0.846 GB, free: 0.9961 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.498, allocations: 4.375 kB / 0.846 GB, free: 0.9922 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.498, allocations: 4.375 kB / 0.846 GB, free: 0.9883 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.4983, allocations: 98.19 kB / 0.8461 GB, free: 0.8867 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.4983, allocations: 192 / 0.8461 GB, free: 0.8867 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.4983, allocations: 3.938 kB / 0.8461 GB, free: 0.8828 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.4983, allocations: 4 kB / 0.8461 GB, free: 0.8789 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002903/0.4986, allocations: 95.92 kB / 0.8462 GB, free: 0.7852 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005692/0.4992, allocations: 344.6 kB / 0.8466 GB, free: 408 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001949/0.4994, allocations: 70.55 kB / 0.8466 GB, free: 328 kB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.4996, allocations: 60.94 kB / 0.8467 GB, free: 264 kB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.187e-05/0.4996, allocations: 0 / 0.8467 GB, free: 264 kB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.28e-05/0.4996, allocations: 34.56 kB / 0.8467 GB, free: 220 kB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.4996, allocations: 0 / 0.8467 GB, free: 220 kB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0005241/0.5002, allocations: 173.4 kB / 0.8469 GB, free: 40 kB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.5002, allocations: 59.39 kB / 0.8469 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.931e-05/0.5003, allocations: 113.8 kB / 0.8471 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.5004, allocations: 25.7 kB / 0.8471 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.428e-05/0.5004, allocations: 95.98 kB / 0.8472 GB, free: 15.72 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.5004, allocations: 11.89 kB / 0.8472 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-06/0.5005, allocations: 0 / 0.8472 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.5006, allocations: 322.8 kB / 0.8475 GB, free: 15.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.5007, allocations: 47.89 kB / 0.8475 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.5009, allocations: 47.97 kB / 0.8476 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002652/0.5012, allocations: 92.78 kB / 0.8477 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.5012, allocations: 0 / 0.8477 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003135/0.5015, allocations: 125.6 kB / 0.8478 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.5015, allocations: 8 kB / 0.8478 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.5015, allocations: 0 / 0.8478 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.5015, allocations: 0 / 0.8478 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.5017, allocations: 23.97 kB / 0.8478 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.5017, allocations: 7.938 kB / 0.8478 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.159e-05/0.5018, allocations: 23.83 kB / 0.8479 GB, free: 15 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.5018, allocations: 0 / 0.8479 GB, free: 15 MB / 0.5261 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.892e-05/0.5019, allocations: 117.8 kB / 0.848 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.525e-05/0.5019, allocations: 4.328 kB / 0.848 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003721/0.5023, allocations: 137.5 kB / 0.8481 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.5023, allocations: 4 kB / 0.8481 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.5024, allocations: 8 kB / 0.8481 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.5024, allocations: 0 / 0.8481 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001798/0.5025, allocations: 181.6 kB / 0.8483 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5026, allocations: 0 / 0.8483 GB, free: 14.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.637e-05/0.5027, allocations: 19.98 kB / 0.8483 GB, free: 14.48 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.5027, allocations: 0 / 0.8483 GB, free: 14.48 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.5027, allocations: 3.984 kB / 0.8483 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.5027, allocations: 0 / 0.8483 GB, free: 14.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.5027, allocations: 7.938 kB / 0.8483 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003828/0.5031, allocations: 223.3 kB / 0.8485 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.5031, allocations: 81.09 kB / 0.8486 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.5031, allocations: 4 kB / 0.8486 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.5033, allocations: 15.98 kB / 0.8486 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.5033, allocations: 3.984 kB / 0.8486 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.5033, allocations: 4 kB / 0.8486 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 5.191e-05/0.5034, allocations: 91.28 kB / 0.8487 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5034, allocations: 0 / 0.8487 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002134/0.5036, allocations: 19.84 kB / 0.8487 GB, free: 14 MB / 0.5261 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001481/0.5038, allocations: 111.1 kB / 0.8488 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000339/0.5041, allocations: 99.86 kB / 0.8489 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5041, allocations: 0 / 0.8489 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.5043, allocations: 51.95 kB / 0.849 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.5045, allocations: 11.94 kB / 0.849 GB, free: 13.72 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003496/0.5049, allocations: 164.4 kB / 0.8492 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.5052, allocations: 0.6887 MB / 0.8498 GB, free: 12.81 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 4.538e-05/0.5053, allocations: 7.984 kB / 0.8498 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.455e-05/0.5053, allocations: 11.44 kB / 0.8498 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of SimCode: time 2.6e-07/0.5053, allocations: 0 / 0.8498 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.002871/0.5082, allocations: 0.614 MB / 0.8504 GB, free: 12.19 MB / 0.5261 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1)