Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.436/2.436, allocations: 284.9 MB / 292.4 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001457, allocations: 176.8 kB / 360.6 MB, free: 7.316 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 0.6191 GB, free: 12.21 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 89.78 kB / 0.7321 GB, free: 44.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.565e-05/2.575e-05, allocations: 4 kB / 0.8509 GB, free: 3.332 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8396/0.8396, allocations: 115.2 MB / 0.9634 GB, free: 78.7 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2465/1.086, allocations: 137.2 MB / 1.097 GB, free: 3.27 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/1.086, allocations: 74.22 kB / 1.097 GB, free: 3.199 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.005327/1.092, allocations: 1.16 MB / 1.099 GB, free: 2.07 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.367e-06/1.092, allocations: 0 / 1.099 GB, free: 2.07 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.474e-06/1.092, allocations: 3.328 kB / 1.099 GB, free: 2.07 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007059/1.093, allocations: 376.2 kB / 1.099 GB, free: 1.66 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/1.093, allocations: 8.875 kB / 1.099 GB, free: 1.652 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.142e-05/1.093, allocations: 9.188 kB / 1.099 GB, free: 1.645 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/1.093, allocations: 171.6 kB / 1.099 GB, free: 1.438 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.018e-05/1.093, allocations: 4 kB / 1.099 GB, free: 1.434 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/1.093, allocations: 8.656 kB / 1.099 GB, free: 1.426 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001398/1.093, allocations: 24.5 kB / 1.099 GB, free: 1.402 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001674/1.093, allocations: 63.11 kB / 1.099 GB, free: 1.336 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/1.093, allocations: 4 kB / 1.099 GB, free: 1.332 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.63e-05/1.093, allocations: 0.7188 kB / 1.099 GB, free: 1.332 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/1.093, allocations: 0 / 1.099 GB, free: 1.332 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008705/1.094, allocations: 312.5 kB / 1.1 GB, free: 0.9922 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/1.094, allocations: 59.23 kB / 1.1 GB, free: 0.9258 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.631e-05/1.095, allocations: 33.42 kB / 1.1 GB, free: 0.8906 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/1.095, allocations: 0.6562 kB / 1.1 GB, free: 0.8906 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/1.095, allocations: 83.17 kB / 1.1 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 3.246e-06/1.095, allocations: 0 / 1.1 GB, free: 0.8047 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.00037/1.095, allocations: 101.6 kB / 1.1 GB, free: 0.6992 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/1.095, allocations: 63.34 kB / 1.1 GB, free: 0.625 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/1.095, allocations: 100.5 kB / 1.1 GB, free: 0.5234 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/1.096, allocations: 29.7 kB / 1.1 GB, free: 500 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 6.864e-05/1.096, allocations: 84.38 kB / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.871e-05/1.096, allocations: 29.58 kB / 1.1 GB, free: 380 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.967e-06/1.096, allocations: 0 / 1.1 GB, free: 380 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001599/1.096, allocations: 326.8 kB / 1.1 GB, free: 44 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.95e-05/1.096, allocations: 20 kB / 1.1 GB, free: 24 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/1.096, allocations: 43.12 kB / 1.1 GB, free: 15.98 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/1.096, allocations: 45.61 kB / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.096, allocations: 0 / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000418/1.097, allocations: 117.5 kB / 1.101 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/1.097, allocations: 4.781 kB / 1.101 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/1.097, allocations: 4 kB / 1.101 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/1.097, allocations: 0 / 1.101 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/1.097, allocations: 24.05 kB / 1.101 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/1.097, allocations: 7.938 kB / 1.101 GB, free: 15.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/1.097, allocations: 11.89 kB / 1.101 GB, free: 15.76 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/1.097, allocations: 11.84 kB / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001286/1.097, allocations: 116.7 kB / 1.101 GB, free: 15.63 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002648/1.098, allocations: 109.6 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/1.098, allocations: 3.906 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003197/1.098, allocations: 117.9 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/1.098, allocations: 0 / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/1.098, allocations: 0 / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/1.098, allocations: 7.984 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005429/1.099, allocations: 350.9 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/1.099, allocations: 4 kB / 1.101 GB, free: 15 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/1.099, allocations: 15.98 kB / 1.101 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/1.099, allocations: 0 / 1.101 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/1.099, allocations: 8 kB / 1.101 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.099, allocations: 0 / 1.101 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/1.099, allocations: 0 / 1.101 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/1.099, allocations: 199.4 kB / 1.102 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-05/1.099, allocations: 89 kB / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/1.099, allocations: 0 / 1.102 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/1.1, allocations: 15.98 kB / 1.102 GB, free: 14.64 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.922e-05/1.1, allocations: 8 kB / 1.102 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/1.1, allocations: 10.73 kB / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.939e-05/1.1, allocations: 91.17 kB / 1.102 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.31e-07/1.1, allocations: 0 / 1.102 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003564/1.1, allocations: 16 kB / 1.102 GB, free: 14.52 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0007497/1.101, allocations: 0.7596 MB / 1.103 GB, free: 13.74 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002571/1.101, allocations: 63.94 kB / 1.103 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.101, allocations: 0 / 1.103 GB, free: 13.68 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/1.101, allocations: 35.98 kB / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/1.102, allocations: 6.062 kB / 1.103 GB, free: 13.64 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006381/1.102, allocations: 140.5 kB / 1.103 GB, free: 13.47 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003512/1.103, allocations: 0.6891 MB / 1.103 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.909e-05/1.103, allocations: 8.422 kB / 1.103 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.459e-05/1.103, allocations: 19.44 kB / 1.103 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of SimCode: time 1.383e-06/1.103, allocations: 0 / 1.103 GB, free: 12.73 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04194/1.145, allocations: 1.431 MB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002421/1.145, allocations: 153.5 kB / 1.105 GB, free: 11.16 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/3.537, allocations: 0 / 1.105 GB, free: 11.16 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)