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.001299/0.001299, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001593/0.001593, allocations: 215 kB / 23.04 MB, free: 5.074 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.953 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.25/3.25, allocations: 0.5003 GB / 0.8061 GB, free: 26.72 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.001964/0.001964, allocations: 70.95 kB / 1.171 GB, free: 19.83 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3715, allocations: 179 MB / 1.345 GB, free: 432 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001922/0.3734, allocations: 0.6929 MB / 1.346 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001493/0.3749, allocations: 1.124 MB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.756e-05/0.3749, allocations: 3.938 kB / 1.347 GB, free: 14.59 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.853e-05/0.375, allocations: 3.938 kB / 1.347 GB, free: 14.58 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.682e-05/0.375, allocations: 11.92 kB / 1.347 GB, free: 14.57 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.3753, allocations: 51.83 kB / 1.347 GB, free: 14.52 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001118/0.3754, allocations: 59.91 kB / 1.347 GB, free: 14.46 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.037e-05/0.3755, allocations: 11.98 kB / 1.347 GB, free: 14.45 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.248e-05/0.3756, allocations: 31.91 kB / 1.347 GB, free: 14.42 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.834e-05/0.3757, allocations: 35.84 kB / 1.347 GB, free: 14.38 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.3757, allocations: 7.938 kB / 1.347 GB, free: 14.38 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.995e-05/0.3757, allocations: 23.98 kB / 1.347 GB, free: 14.35 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.3758, allocations: 19.97 kB / 1.347 GB, free: 14.33 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.213e-05/0.3758, allocations: 27.86 kB / 1.347 GB, free: 14.3 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.376, allocations: 79.97 kB / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.376, allocations: 0 / 1.347 GB, free: 14.23 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.192e-06/0.376, allocations: 4 kB / 1.347 GB, free: 14.22 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.376, allocations: 0 / 1.347 GB, free: 14.22 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.0006057/0.3766, allocations: 310.1 kB / 1.348 GB, free: 13.89 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.3766, allocations: 8.031 kB / 1.348 GB, free: 13.88 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.516e-05/0.3766, allocations: 4.188 kB / 1.348 GB, free: 13.88 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.688e-05/0.3767, allocations: 42.73 kB / 1.348 GB, free: 13.82 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.264e-05/0.3767, allocations: 8.891 kB / 1.348 GB, free: 13.82 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.881e-05/0.3768, allocations: 110.5 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.3769, allocations: 4.375 kB / 1.348 GB, free: 13.68 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.3769, allocations: 8.375 kB / 1.348 GB, free: 13.67 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.3771, allocations: 85.89 kB / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3771, allocations: 0 / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.3771, allocations: 0 / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3771, allocations: 4 kB / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002094/0.3773, allocations: 59.89 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.3778, allocations: 291.7 kB / 1.348 GB, free: 13.19 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001988/0.378, allocations: 78.53 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.3782, allocations: 40.84 kB / 1.348 GB, free: 13.06 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.3782, allocations: 0 / 1.348 GB, free: 13.06 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.3784, allocations: 91.48 kB / 1.349 GB, free: 12.96 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.3784, allocations: 0 / 1.349 GB, free: 12.96 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0005407/0.379, allocations: 173.5 kB / 1.349 GB, free: 12.79 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.443e-05/0.379, allocations: 59.41 kB / 1.349 GB, free: 12.71 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.83e-05/0.3791, allocations: 105.8 kB / 1.349 GB, free: 12.6 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.3792, allocations: 29.7 kB / 1.349 GB, free: 12.57 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.112e-05/0.3792, allocations: 92.36 kB / 1.349 GB, free: 12.47 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.131e-05/0.3792, allocations: 23.8 kB / 1.349 GB, free: 12.45 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-05/0.3793, allocations: 29.7 kB / 1.349 GB, free: 12.41 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.3794, allocations: 326.8 kB / 1.349 GB, free: 12.08 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.3796, allocations: 35.98 kB / 1.349 GB, free: 12.05 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.3797, allocations: 66.58 kB / 1.349 GB, free: 11.97 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/0.38, allocations: 98.47 kB / 1.35 GB, free: 11.87 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.38, allocations: 8 kB / 1.35 GB, free: 11.86 MB / 1.045 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003308/0.3803, allocations: 141.5 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.3803, allocations: 4 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.3803, allocations: 0 / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3803, allocations: 4 kB / 1.35 GB, free: 11.71 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.3805, allocations: 15.98 kB / 1.35 GB, free: 11.69 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.3805, allocations: 7.938 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.689e-05/0.3806, allocations: 16 kB / 1.35 GB, free: 11.67 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.3806, allocations: 12.36 kB / 1.35 GB, free: 11.66 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.000105/0.3807, allocations: 121.7 kB / 1.35 GB, free: 11.53 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.3807, allocations: 11.89 kB / 1.35 GB, free: 11.52 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003642/0.3811, allocations: 149.9 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.3811, allocations: 0 / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.3811, allocations: 0 / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3811, allocations: 4 kB / 1.35 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005633/0.3816, allocations: 381.5 kB / 1.35 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.3816, allocations: 3.984 kB / 1.35 GB, free: 10.93 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.156e-05/0.3817, allocations: 8 kB / 1.35 GB, free: 10.93 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3817, allocations: 0 / 1.35 GB, free: 10.93 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.3817, allocations: 3.984 kB / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.3817, allocations: 3.938 kB / 1.35 GB, free: 10.92 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3817, allocations: 7.938 kB / 1.35 GB, free: 10.91 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.3821, allocations: 231.5 kB / 1.351 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.3821, allocations: 3.953 kB / 1.351 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.3822, allocations: 8.234 kB / 1.351 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.3823, allocations: 15.94 kB / 1.351 GB, free: 10.64 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.265e-05/0.3823, allocations: 11.92 kB / 1.351 GB, free: 10.63 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.3823, allocations: 7.984 kB / 1.351 GB, free: 10.62 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.276e-05/0.3824, allocations: 87.28 kB / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3824, allocations: 0 / 1.351 GB, free: 10.54 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002594/0.3827, allocations: 16 kB / 1.351 GB, free: 10.52 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.0007206/0.3834, allocations: 0.7751 MB / 1.352 GB, free: 9.719 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003053/0.3837, allocations: 87.88 kB / 1.352 GB, free: 9.633 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3837, allocations: 4 kB / 1.352 GB, free: 9.629 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.3838, allocations: 43.91 kB / 1.352 GB, free: 9.586 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.3841, allocations: 17.64 kB / 1.352 GB, free: 9.57 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.3859, allocations: 1.504 MB / 1.353 GB, free: 7.977 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.3863, allocations: 0.6924 MB / 1.354 GB, free: 7.258 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.301e-05/0.3863, allocations: 8.422 kB / 1.354 GB, free: 7.25 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.357e-05/0.3864, allocations: 23.42 kB / 1.354 GB, free: 7.227 MB / 1.045 GB Notification: Performance of SimCode: time 6.92e-07/0.3864, allocations: 0 / 1.354 GB, free: 7.227 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02221/0.4086, allocations: 2.255 MB / 1.356 GB, free: 5.117 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.95, allocations: 5.953 kB / 1.356 GB, free: 5.113 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.737646354013123] Failed to read output from testmodel.py, exit status != 0: 12.107834672031458 12.134690376 11.753520017 Calling exit ...