Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.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.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",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 1.137/1.137, allocations: 141.8 MB / 149.3 MB, free: 9.223 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.001286/0.001287, allocations: 180.8 kB / 182.2 MB, free: 9.441 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.928/3.928, allocations: 221.5 MB / 436.4 MB, free: 13.33 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.1495/0.1495, allocations: 97.47 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.1367/0.1367, allocations: 280.8 kB / 0.5889 GB, free: 54.66 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.628e-05/2.629e-05, allocations: 4 kB / 0.6766 GB, free: 12.73 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4593/0.4593, allocations: 82.78 MB / 0.7575 GB, free: 31.99 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 23.98/24.44, allocations: 108.5 MB / 0.8635 GB, free: 3.312 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003712/24.44, allocations: 75.89 kB / 0.8635 GB, free: 3.238 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.02423/24.46, allocations: 4.324 MB / 0.8678 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of FrontEnd: time 7.254e-06/24.46, allocations: 0 / 0.8678 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.835e-05/24.46, allocations: 7.938 kB / 0.8678 GB, free: 14.91 MB / 0.5417 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.0007125/24.46, allocations: 366.4 kB / 0.8681 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 8.476e-05/24.46, allocations: 8.031 kB / 0.8681 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/24.46, allocations: 11.91 kB / 0.8681 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004075/24.47, allocations: 163.1 kB / 0.8683 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/24.47, allocations: 3.953 kB / 0.8683 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.15e-05/24.47, allocations: 7.938 kB / 0.8683 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001122/24.47, allocations: 8 kB / 0.8683 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.941e-05/24.47, allocations: 29.7 kB / 0.8683 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/24.47, allocations: 0 / 0.8683 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/24.47, allocations: 4 kB / 0.8683 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/24.47, allocations: 4 kB / 0.8683 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006159/24.47, allocations: 249.5 kB / 0.8686 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 8.482e-05/24.47, allocations: 18.58 kB / 0.8686 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.83e-05/24.47, allocations: 20.8 kB / 0.8686 GB, free: 13.89 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008722/24.47, allocations: 465.5 kB / 0.8691 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.022e-05/24.47, allocations: 38.56 kB / 0.8691 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.413e-06/24.47, allocations: 0 / 0.8691 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0003058/24.47, allocations: 41.69 kB / 0.8691 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/24.47, allocations: 55.41 kB / 0.8692 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.678e-05/24.47, allocations: 93 kB / 0.8693 GB, free: 13.09 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/24.47, allocations: 25.7 kB / 0.8693 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.856e-05/24.47, allocations: 88.14 kB / 0.8694 GB, free: 12.97 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/24.47, allocations: 7.891 kB / 0.8694 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/24.47, allocations: 0 / 0.8694 GB, free: 12.96 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001938/24.47, allocations: 318.9 kB / 0.8697 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.19e-05/24.47, allocations: 4 kB / 0.8697 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.048e-05/24.47, allocations: 8 kB / 0.8697 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.977e-05/24.47, allocations: 7.938 kB / 0.8697 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/24.47, allocations: 0 / 0.8697 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001498/24.47, allocations: 45.56 kB / 0.8698 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.384e-05/24.47, allocations: 15.92 kB / 0.8698 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/24.47, allocations: 0 / 0.8698 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.46e-05/24.47, allocations: 4.094 kB / 0.8698 GB, free: 12.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/24.47, allocations: 8 kB / 0.8698 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/24.47, allocations: 0 / 0.8698 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.65e-05/24.47, allocations: 11.98 kB / 0.8698 GB, free: 12.53 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/24.47, allocations: 0 / 0.8698 GB, free: 12.53 MB / 0.5417 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 0.0001182/24.47, allocations: 101 kB / 0.8699 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000167/24.47, allocations: 53.58 kB / 0.8699 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.753e-05/24.47, allocations: 8.031 kB / 0.87 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001796/24.47, allocations: 45.66 kB / 0.87 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/24.47, allocations: 0 / 0.87 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/24.47, allocations: 0 / 0.87 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/24.47, allocations: 0 / 0.87 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/24.47, allocations: 142.2 kB / 0.8701 GB, free: 12.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/24.47, allocations: 3.953 kB / 0.8701 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.185e-05/24.47, allocations: 11.98 kB / 0.8701 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.916e-06/24.47, allocations: 8.016 kB / 0.8702 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/24.47, allocations: 0 / 0.8702 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/24.47, allocations: 1.953 kB / 0.8702 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/24.47, allocations: 0 / 0.8702 GB, free: 12.11 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/24.47, allocations: 147.4 kB / 0.8703 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.495e-05/24.47, allocations: 85.06 kB / 0.8704 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/24.47, allocations: 0 / 0.8704 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/24.47, allocations: 12.02 kB / 0.8704 GB, free: 11.83 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/24.47, allocations: 7.938 kB / 0.8704 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/24.47, allocations: 0 / 0.8704 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 7.025e-05/24.47, allocations: 83.53 kB / 0.8705 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of sort global known variables: time 4.11e-07/24.47, allocations: 0 / 0.8705 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000354/24.47, allocations: 19.98 kB / 0.8705 GB, free: 11.72 MB / 0.5417 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.0008541/24.47, allocations: 0.6851 MB / 0.8712 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001172/24.47, allocations: 19.94 kB / 0.8712 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/24.47, allocations: 0 / 0.8712 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 2.764e-05/24.47, allocations: 4 kB / 0.8712 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002669/24.47, allocations: 1.031 kB / 0.8712 GB, free: 10.99 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005084/24.47, allocations: 105.4 kB / 0.8713 GB, free: 10.85 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/24.47, allocations: 0.6886 MB / 0.872 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.325e-05/24.47, allocations: 0 / 0.872 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.641e-05/24.47, allocations: 11.44 kB / 0.872 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of SimCode: time 3e-07/24.47, allocations: 0 / 0.872 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08075/24.55, allocations: 1.003 MB / 0.873 GB, free: 9.137 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003247/24.55, allocations: 144.7 kB / 0.8731 GB, free: 8.949 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/26.4, allocations: 0 / 0.8731 GB, free: 8.949 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)