Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001304/0.001304, 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.00147/0.00147, allocations: 215.9 kB / 23.03 MB, free: 4.922 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.492/1.492, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.224/3.224, allocations: 0.49 GB / 0.7959 GB, free: 35.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,fileNamePrefix="Buildings_12_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.001972/0.001972, allocations: 69.09 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3718/0.3738, allocations: 176.1 MB / 1.327 GB, free: 1.547 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002221/0.376, allocations: 0.6807 MB / 1.327 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001505/0.3775, allocations: 1.097 MB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.47e-05/0.3776, allocations: 3.938 kB / 1.328 GB, free: 15.76 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.3776, allocations: 3.938 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 7.319e-05/0.3777, allocations: 7.938 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003204/0.378, allocations: 55.83 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.3781, allocations: 79.75 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 9.991e-05/0.3782, allocations: 4 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.286e-05/0.3783, allocations: 27.92 kB / 1.329 GB, free: 15.58 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 6.943e-05/0.3784, allocations: 39.83 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.3784, allocations: 8 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.012e-05/0.3785, allocations: 23.98 kB / 1.329 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.084e-05/0.3785, allocations: 11.98 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.428e-05/0.3785, allocations: 27.86 kB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.3787, allocations: 80.03 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.3787, allocations: 0 / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3787, allocations: 0 / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.3787, allocations: 0 / 1.329 GB, free: 15.39 MB / 1.029 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.0006665/0.3794, allocations: 310 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.3794, allocations: 12.03 kB / 1.329 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.648e-05/0.3794, allocations: 4.125 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.99e-05/0.3795, allocations: 42.73 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.168e-05/0.3796, allocations: 8.938 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.3797, allocations: 114.5 kB / 1.329 GB, free: 14.85 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.721e-05/0.3797, allocations: 4.375 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.3797, allocations: 12.36 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.38, allocations: 77.97 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.38, allocations: 0 / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.38, allocations: 0 / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.38, allocations: 3.938 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002151/0.3802, allocations: 63.94 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.3807, allocations: 263.8 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.3809, allocations: 70.55 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.381, allocations: 40.95 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.381, allocations: 4 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.3813, allocations: 91.31 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.3813, allocations: 4 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0005125/0.3818, allocations: 177.5 kB / 1.33 GB, free: 13.97 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.3819, allocations: 55.52 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.382, allocations: 117.7 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/0.382, allocations: 29.7 kB / 1.33 GB, free: 13.75 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.015e-05/0.382, allocations: 88.38 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.3821, allocations: 31.77 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.3821, allocations: 29.72 kB / 1.33 GB, free: 13.59 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3823, allocations: 326.8 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3824, allocations: 35.97 kB / 1.331 GB, free: 13.22 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.3825, allocations: 67.89 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002423/0.3828, allocations: 98.47 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3828, allocations: 0 / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003281/0.3831, allocations: 141.5 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.3831, allocations: 7.938 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.3831, allocations: 4 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.3831, allocations: 0 / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.3833, allocations: 31.91 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.3833, allocations: 0 / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.065e-05/0.3834, allocations: 11.95 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.3834, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 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.0001083/0.3835, allocations: 150.2 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.3835, allocations: 4 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003471/0.3838, allocations: 138 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.3839, allocations: 4 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3839, allocations: 3.938 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3839, allocations: 0 / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000536/0.3844, allocations: 373.9 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3844, allocations: 4 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.661e-05/0.3845, allocations: 11.98 kB / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3845, allocations: 0 / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.869e-06/0.3845, allocations: 96 / 1.332 GB, free: 12.1 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.3845, allocations: 7.938 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3845, allocations: 3.938 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003499/0.3848, allocations: 243.3 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.045e-05/0.3848, allocations: 4 kB / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.3849, allocations: 0 / 1.332 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.385, allocations: 15.98 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.385, allocations: 11.92 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.385, allocations: 4.25 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.216e-05/0.3851, allocations: 91.27 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3851, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002444/0.3853, allocations: 20 kB / 1.332 GB, free: 11.69 MB / 1.029 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.0006961/0.386, allocations: 0.7768 MB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003003/0.3863, allocations: 99.81 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3863, allocations: 3.938 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.3864, allocations: 39.97 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.3867, allocations: 20.3 kB / 1.333 GB, free: 10.73 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.3885, allocations: 1.506 MB / 1.334 GB, free: 9.137 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.254e-05/0.3886, allocations: 71.33 kB / 1.334 GB, free: 9.047 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.751e-05/0.3886, allocations: 8.422 kB / 1.334 GB, free: 9.039 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.3887, allocations: 19.42 kB / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3887, allocations: 4 kB / 1.334 GB, free: 9.016 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.4115, allocations: 2.297 MB / 1.337 GB, free: 6.887 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.84, allocations: 6.797 kB / 1.337 GB, free: 6.883 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.604937986005098] Failed to read output from testmodel.py, exit status != 0: 12.00451454904396 12.030801911 11.64731032 Calling exit ...