Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 97.31 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 208.6 kB / 23.02 MB, free: 4.926 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.237/3.237, allocations: 0.5003 GB / 0.8062 GB, free: 28.29 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 65.67 kB / 1.17 GB, free: 19.55 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3517, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002024/0.3538, allocations: 0.6698 MB / 1.346 GB, free: 15.29 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001635/0.3554, allocations: 1.097 MB / 1.347 GB, free: 14.18 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.036e-05/0.3554, allocations: 3.938 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.474e-05/0.3555, allocations: 3.938 kB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.366e-05/0.3555, allocations: 11.86 kB / 1.347 GB, free: 14.16 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.3559, allocations: 51.83 kB / 1.347 GB, free: 14.11 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001253/0.356, allocations: 71.83 kB / 1.347 GB, free: 14.04 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.3561, allocations: 11.98 kB / 1.347 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.955e-05/0.3562, allocations: 27.92 kB / 1.347 GB, free: 14 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.511e-05/0.3562, allocations: 31.89 kB / 1.347 GB, free: 13.96 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.091e-05/0.3563, allocations: 8 kB / 1.347 GB, free: 13.96 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.447e-05/0.3563, allocations: 27.92 kB / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.958e-05/0.3564, allocations: 11.98 kB / 1.347 GB, free: 13.92 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.39e-05/0.3564, allocations: 19.94 kB / 1.347 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.3566, allocations: 91.88 kB / 1.347 GB, free: 13.81 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3566, allocations: 4 kB / 1.347 GB, free: 13.8 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.142e-06/0.3566, allocations: 0 / 1.347 GB, free: 13.8 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.3566, allocations: 0 / 1.347 GB, free: 13.8 MB / 1.045 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.0006634/0.3573, allocations: 306.1 kB / 1.348 GB, free: 13.47 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.3573, allocations: 12.03 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.965e-05/0.3573, allocations: 4.188 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.909e-05/0.3574, allocations: 38.75 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.831e-05/0.3575, allocations: 12.88 kB / 1.348 GB, free: 13.4 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.3576, allocations: 114.5 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.3576, allocations: 4.375 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.3576, allocations: 8.375 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00024/0.3578, allocations: 89.83 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3578, allocations: 0 / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.3579, allocations: 4 kB / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.3579, allocations: 0 / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.3581, allocations: 51.95 kB / 1.348 GB, free: 13.1 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00051/0.3586, allocations: 275.8 kB / 1.348 GB, free: 12.79 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.3588, allocations: 74.47 kB / 1.348 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/0.3589, allocations: 36.84 kB / 1.348 GB, free: 12.67 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.3589, allocations: 4 kB / 1.348 GB, free: 12.66 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.3592, allocations: 87.36 kB / 1.348 GB, free: 12.57 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.3592, allocations: 0 / 1.348 GB, free: 12.57 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0004918/0.3597, allocations: 181.6 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.3597, allocations: 55.41 kB / 1.349 GB, free: 12.32 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.453e-05/0.3598, allocations: 105.8 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.3598, allocations: 33.64 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.968e-05/0.3599, allocations: 92.47 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.313e-05/0.3599, allocations: 31.72 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-05/0.36, allocations: 33.7 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.3602, allocations: 322.8 kB / 1.349 GB, free: 11.67 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.3603, allocations: 39.97 kB / 1.349 GB, free: 11.63 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.3604, allocations: 65.08 kB / 1.349 GB, free: 11.56 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.3607, allocations: 98.47 kB / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3607, allocations: 0 / 1.349 GB, free: 11.46 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003403/0.361, allocations: 145.6 kB / 1.35 GB, free: 11.31 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.361, allocations: 4 kB / 1.35 GB, free: 11.3 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3611, allocations: 4 kB / 1.35 GB, free: 11.3 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.3611, allocations: 3.984 kB / 1.35 GB, free: 11.3 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001321/0.3612, allocations: 23.92 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.3612, allocations: 0 / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.822e-05/0.3613, allocations: 15.94 kB / 1.35 GB, free: 11.26 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3613, allocations: 4 kB / 1.35 GB, free: 11.25 MB / 1.045 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 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.3614, allocations: 129.7 kB / 1.35 GB, free: 11.12 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/0.3614, allocations: 11.95 kB / 1.35 GB, free: 11.11 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003809/0.3618, allocations: 141.9 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3618, allocations: 4 kB / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3618, allocations: 256 / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3618, allocations: 0 / 1.35 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005587/0.3624, allocations: 381.9 kB / 1.35 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3624, allocations: 0 / 1.35 GB, free: 10.54 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.033e-05/0.3625, allocations: 15.98 kB / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.3625, allocations: 0 / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3625, allocations: 0 / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.3625, allocations: 4 kB / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3625, allocations: 7.922 kB / 1.35 GB, free: 10.51 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00039/0.3629, allocations: 239.4 kB / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.159e-05/0.3629, allocations: 7.953 kB / 1.351 GB, free: 10.25 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.3629, allocations: 4 kB / 1.351 GB, free: 10.25 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.363, allocations: 11.98 kB / 1.351 GB, free: 10.23 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.3631, allocations: 11.92 kB / 1.351 GB, free: 10.22 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.3631, allocations: 4 kB / 1.351 GB, free: 10.22 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.82e-05/0.3631, allocations: 83.28 kB / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3631, allocations: 0 / 1.351 GB, free: 10.14 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002564/0.3634, allocations: 23.98 kB / 1.351 GB, free: 10.11 MB / 1.045 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007508/0.3641, allocations: 0.7787 MB / 1.351 GB, free: 9.309 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002995/0.3644, allocations: 95.88 kB / 1.352 GB, free: 9.215 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3644, allocations: 0 / 1.352 GB, free: 9.215 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.3646, allocations: 40.25 kB / 1.352 GB, free: 9.176 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.3648, allocations: 19.8 kB / 1.352 GB, free: 9.16 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.3667, allocations: 1.513 MB / 1.353 GB, free: 7.555 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.918e-05/0.3668, allocations: 67.34 kB / 1.353 GB, free: 7.469 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.048e-05/0.3668, allocations: 12.41 kB / 1.353 GB, free: 7.457 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.106e-05/0.3669, allocations: 19.44 kB / 1.353 GB, free: 7.438 MB / 1.045 GB Notification: Performance of SimCode: time 3.11e-07/0.3669, allocations: 0 / 1.353 GB, free: 7.438 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.3894, allocations: 2.301 MB / 1.355 GB, free: 5.293 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.79, allocations: 11.97 kB / 1.355 GB, free: 5.285 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.47954735904932] Failed to read output from testmodel.py, exit status != 0: 11.951327990042046 11.978533366 11.61776951 Calling exit ...