Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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) 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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Average,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7532/0.7532, allocations: 128.7 MB / 143.7 MB, free: 2.336 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 178.3 kB / 173.7 MB, free: 6.145 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.4 MB / 409 MB, free: 10.51 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009297/0.0009301, allocations: 102.7 kB / 486.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003089, allocations: 10.59 kB / 0.5604 GB, free: 97.46 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1487, allocations: 76.78 MB / 0.6354 GB, free: 30.48 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1393/0.288, allocations: 102.8 MB / 0.7358 GB, free: 7.547 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.2883, allocations: 75.95 kB / 0.7359 GB, free: 7.473 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.003344/0.2917, allocations: 1.136 MB / 0.737 GB, free: 6.328 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2917, allocations: 0 / 0.737 GB, free: 6.328 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.075e-05/0.2917, allocations: 4 kB / 0.737 GB, free: 6.324 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.0004878/0.2922, allocations: 387.1 kB / 0.7373 GB, free: 5.898 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.2923, allocations: 8.031 kB / 0.7374 GB, free: 5.891 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.172e-05/0.2923, allocations: 42.48 kB / 0.7374 GB, free: 5.84 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.096e-05/0.2923, allocations: 11.95 kB / 0.7374 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.2925, allocations: 186.9 kB / 0.7376 GB, free: 5.605 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.159e-05/0.2925, allocations: 4 kB / 0.7376 GB, free: 5.602 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.2926, allocations: 0 / 0.7376 GB, free: 5.602 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002769/0.2928, allocations: 101.6 kB / 0.7377 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2929, allocations: 0 / 0.7377 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.2929, allocations: 4 kB / 0.7377 GB, free: 5.492 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.2929, allocations: 4 kB / 0.7377 GB, free: 5.488 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.2932, allocations: 99.86 kB / 0.7378 GB, free: 5.391 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005753/0.2938, allocations: 344.6 kB / 0.7381 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002038/0.294, allocations: 74.53 kB / 0.7382 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.2941, allocations: 0 / 0.7382 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.2941, allocations: 34.52 kB / 0.7382 GB, free: 4.879 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.2941, allocations: 0 / 0.7382 GB, free: 4.879 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0005709/0.2947, allocations: 177.7 kB / 0.7384 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.2948, allocations: 55.41 kB / 0.7384 GB, free: 4.633 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.081e-05/0.2948, allocations: 105 kB / 0.7385 GB, free: 4.523 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2949, allocations: 25.7 kB / 0.7386 GB, free: 4.492 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.558e-05/0.2949, allocations: 92.05 kB / 0.7387 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.2949, allocations: 11.84 kB / 0.7387 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-06/0.295, allocations: 0 / 0.7387 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2951, allocations: 318.8 kB / 0.739 GB, free: 4.066 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.2952, allocations: 47.91 kB / 0.739 GB, free: 4.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.2954, allocations: 47.95 kB / 0.7391 GB, free: 3.973 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.2955, allocations: 47.95 kB / 0.7391 GB, free: 3.926 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2956, allocations: 0 / 0.7391 GB, free: 3.926 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003331/0.2959, allocations: 125.5 kB / 0.7392 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.2959, allocations: 13.88 kB / 0.7392 GB, free: 3.785 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2959, allocations: 3.953 kB / 0.7392 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.296, allocations: 0 / 0.7392 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.2961, allocations: 23.97 kB / 0.7393 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.2961, allocations: 0 / 0.7393 GB, free: 3.758 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.833e-05/0.2962, allocations: 19.98 kB / 0.7393 GB, free: 3.738 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.2962, allocations: 0 / 0.7393 GB, free: 3.738 MB / 0.5105 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.865e-05/0.2963, allocations: 117.8 kB / 0.7394 GB, free: 3.613 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.541e-05/0.2964, allocations: 7.906 kB / 0.7394 GB, free: 3.605 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003827/0.2967, allocations: 137.5 kB / 0.7395 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.2968, allocations: 4.328 kB / 0.7395 GB, free: 3.457 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2968, allocations: 4 kB / 0.7395 GB, free: 3.453 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2968, allocations: 0 / 0.7395 GB, free: 3.453 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001804/0.297, allocations: 173.6 kB / 0.7397 GB, free: 3.234 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.297, allocations: 0 / 0.7397 GB, free: 3.234 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.2971, allocations: 31.95 kB / 0.7397 GB, free: 3.203 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2971, allocations: 0 / 0.7397 GB, free: 3.203 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.2971, allocations: 0 / 0.7397 GB, free: 3.203 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2971, allocations: 0 / 0.7397 GB, free: 3.203 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.2971, allocations: 3.953 kB / 0.7397 GB, free: 3.199 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.2975, allocations: 219.5 kB / 0.74 GB, free: 2.969 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.2976, allocations: 92.95 kB / 0.74 GB, free: 2.859 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.2976, allocations: 0 / 0.74 GB, free: 2.859 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.2977, allocations: 15.98 kB / 0.7401 GB, free: 2.844 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.2978, allocations: 15.88 kB / 0.7401 GB, free: 2.828 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-06/0.2978, allocations: 8 kB / 0.7401 GB, free: 2.82 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.549e-05/0.2979, allocations: 91.7 kB / 0.7402 GB, free: 2.73 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.553e-06/0.2979, allocations: 0 / 0.7402 GB, free: 2.73 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002052/0.2981, allocations: 11.94 kB / 0.7402 GB, free: 2.719 MB / 0.5105 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.0007439/0.2988, allocations: 0.7673 MB / 0.7409 GB, free: 1.926 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003522/0.2992, allocations: 103.9 kB / 0.741 GB, free: 1.824 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.2992, allocations: 0 / 0.741 GB, free: 1.824 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.2994, allocations: 51.95 kB / 0.7411 GB, free: 1.773 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.2995, allocations: 4.328 kB / 0.7411 GB, free: 1.77 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.3007, allocations: 0.5756 MB / 0.7416 GB, free: 1.145 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.3011, allocations: 0.6965 MB / 0.7423 GB, free: 432 kB / 0.5105 GB Notification: Performance of simCode: alias equations: time 4.569e-05/0.3011, allocations: 12.14 kB / 0.7423 GB, free: 420 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.403e-05/0.3012, allocations: 19.42 kB / 0.7424 GB, free: 400 kB / 0.5105 GB Notification: Performance of SimCode: time 2.2e-07/0.3012, allocations: 0 / 0.7424 GB, free: 400 kB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2765/0.5777, allocations: 1.454 MB / 0.7438 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/0.5779, allocations: 176.5 kB / 0.7439 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.455/2.033, allocations: 12.73 kB / 0.744 GB, free: 108.9 MB / 0.5105 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Average.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Average.pipe 2>&1)