Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9017/0.9017, allocations: 141.8 MB / 149.3 MB, free: 9.234 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 191.7 kB / 182.2 MB, free: 9.457 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.758/1.758, allocations: 221.5 MB / 436.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 88.05 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00193/0.00193, allocations: 276 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 3.251e-05/3.252e-05, allocations: 12 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6144/0.6145, allocations: 82.77 MB / 0.7575 GB, free: 31.91 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.45/15.06, allocations: 107.9 MB / 0.8628 GB, free: 3.887 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/15.06, allocations: 75.91 kB / 0.8629 GB, free: 3.812 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001947/15.06, allocations: 0.7766 MB / 0.8636 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.693e-06/15.06, allocations: 0 / 0.8636 GB, free: 3.035 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.861e-06/15.06, allocations: 0 / 0.8636 GB, free: 3.035 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003118/15.06, allocations: 342.5 kB / 0.864 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/15.06, allocations: 8.031 kB / 0.864 GB, free: 2.648 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001525/15.06, allocations: 23.89 kB / 0.864 GB, free: 2.625 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/15.06, allocations: 163.1 kB / 0.8642 GB, free: 2.426 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/15.06, allocations: 7.891 kB / 0.8642 GB, free: 2.418 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/15.06, allocations: 4 kB / 0.8642 GB, free: 2.414 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.459e-05/15.06, allocations: 12 kB / 0.8642 GB, free: 2.402 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.914e-05/15.06, allocations: 41.69 kB / 0.8642 GB, free: 2.355 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/15.06, allocations: 0 / 0.8642 GB, free: 2.355 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.676e-06/15.06, allocations: 0 / 0.8642 GB, free: 2.355 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/15.06, allocations: 4 kB / 0.8642 GB, free: 2.352 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003743/15.06, allocations: 253.5 kB / 0.8645 GB, free: 2.066 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 6.105e-05/15.06, allocations: 38.52 kB / 0.8645 GB, free: 2.02 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.739e-05/15.06, allocations: 16.92 kB / 0.8645 GB, free: 2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.272e-05/15.06, allocations: 0 / 0.8645 GB, free: 2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/15.06, allocations: 30.56 kB / 0.8646 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 7.32e-07/15.06, allocations: 0 / 0.8646 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001371/15.06, allocations: 41.7 kB / 0.8646 GB, free: 1.914 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/15.06, allocations: 51.41 kB / 0.8646 GB, free: 1.852 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.291e-05/15.06, allocations: 101 kB / 0.8647 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/15.06, allocations: 29.7 kB / 0.8648 GB, free: 1.711 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.552e-05/15.06, allocations: 84.14 kB / 0.8648 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/15.06, allocations: 7.844 kB / 0.8649 GB, free: 1.617 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-06/15.06, allocations: 0 / 0.8649 GB, free: 1.617 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001005/15.06, allocations: 310.8 kB / 0.8651 GB, free: 1.305 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.805e-05/15.06, allocations: 8 kB / 0.8652 GB, free: 1.297 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.954e-05/15.06, allocations: 15.98 kB / 0.8652 GB, free: 1.281 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.79e-05/15.06, allocations: 12 kB / 0.8652 GB, free: 1.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/15.06, allocations: 0 / 0.8652 GB, free: 1.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.576e-05/15.06, allocations: 53.56 kB / 0.8652 GB, free: 1.211 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/15.06, allocations: 7.938 kB / 0.8652 GB, free: 1.203 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/15.06, allocations: 0 / 0.8652 GB, free: 1.203 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/15.06, allocations: 256 / 0.8652 GB, free: 1.203 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/15.06, allocations: 15.98 kB / 0.8653 GB, free: 1.188 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/15.06, allocations: 7.75 kB / 0.8653 GB, free: 1.184 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.003e-05/15.06, allocations: 16.02 kB / 0.8653 GB, free: 1.168 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/15.06, allocations: 0 / 0.8653 GB, free: 1.168 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.709e-05/15.06, allocations: 105 kB / 0.8654 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 7.989e-05/15.06, allocations: 61.52 kB / 0.8654 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/15.06, allocations: 0 / 0.8654 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.05e-05/15.06, allocations: 3.969 kB / 0.8654 GB, free: 0.9844 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/15.06, allocations: 0 / 0.8654 GB, free: 0.9844 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/15.06, allocations: 8.031 kB / 0.8654 GB, free: 0.9766 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/15.06, allocations: 0 / 0.8654 GB, free: 0.9766 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/15.06, allocations: 142.2 kB / 0.8656 GB, free: 0.8008 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/15.06, allocations: 3.953 kB / 0.8656 GB, free: 0.7969 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.508e-05/15.06, allocations: 15.98 kB / 0.8656 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/15.06, allocations: 0 / 0.8656 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/15.06, allocations: 0 / 0.8656 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/15.06, allocations: 0 / 0.8656 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/15.06, allocations: 0 / 0.8656 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/15.06, allocations: 151.5 kB / 0.8657 GB, free: 0.6172 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.298e-05/15.06, allocations: 81.06 kB / 0.8658 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.167e-05/15.06, allocations: 0 / 0.8658 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.873e-05/15.06, allocations: 11.98 kB / 0.8658 GB, free: 0.5078 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.411e-05/15.07, allocations: 8 kB / 0.8658 GB, free: 0.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/15.07, allocations: 3.938 kB / 0.8658 GB, free: 0.4961 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.343e-05/15.07, allocations: 87.3 kB / 0.8659 GB, free: 420 kB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/15.07, allocations: 0 / 0.8659 GB, free: 420 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.000186/15.07, allocations: 4 kB / 0.8659 GB, free: 416 kB / 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003635/15.07, allocations: 0.6734 MB / 0.8666 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 7.331e-05/15.07, allocations: 20.03 kB / 0.8666 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/15.07, allocations: 0 / 0.8666 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.608e-05/15.07, allocations: 15.94 kB / 0.8666 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/15.07, allocations: 2.125 kB / 0.8666 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003298/15.07, allocations: 105.5 kB / 0.8667 GB, free: 15.53 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/15.07, allocations: 0.6808 MB / 0.8674 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.086e-05/15.07, allocations: 7.906 kB / 0.8674 GB, free: 14.82 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/15.07, allocations: 15.42 kB / 0.8674 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of SimCode: time 2.2e-07/15.07, allocations: 0 / 0.8674 GB, free: 14.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.184/17.25, allocations: 0.8656 MB / 0.8683 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002345/17.25, allocations: 146.1 kB / 0.8684 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.36/19.61, allocations: 0.5 kB / 0.8684 GB, free: 13.76 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe 2>&1)