Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.001331/0.001331, 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.001507/0.001507, allocations: 214.4 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.458/1.458, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.285/3.285, allocations: 0.49 GB / 0.7959 GB, free: 33.33 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.ZeroOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold",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.002043/0.002043, allocations: 66.19 kB / 1.155 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3845, allocations: 176.1 MB / 1.327 GB, free: 1.992 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002122/0.3866, allocations: 0.6765 MB / 1.327 GB, free: 1.32 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001762/0.3884, allocations: 1.132 MB / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.977e-05/0.3884, allocations: 0 / 1.328 GB, free: 180 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.783e-05/0.3884, allocations: 3.938 kB / 1.328 GB, free: 176 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.249e-05/0.3885, allocations: 11.94 kB / 1.328 GB, free: 164 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.3889, allocations: 51.81 kB / 1.328 GB, free: 112 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.389, allocations: 43.86 kB / 1.329 GB, free: 68 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.3891, allocations: 11.98 kB / 1.329 GB, free: 56 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 8.256e-05/0.3892, allocations: 15.94 kB / 1.329 GB, free: 40 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.965e-05/0.3892, allocations: 31.89 kB / 1.329 GB, free: 8 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.3893, allocations: 4 kB / 1.329 GB, free: 4 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.557e-05/0.3894, allocations: 19.98 kB / 1.329 GB, free: 15.98 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.3894, allocations: 11.92 kB / 1.329 GB, free: 15.97 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 4.18e-05/0.3894, allocations: 19.94 kB / 1.329 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.3896, allocations: 79.91 kB / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3896, allocations: 0 / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3896, allocations: 0 / 1.329 GB, free: 15.88 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.3896, allocations: 0 / 1.329 GB, free: 15.88 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006235/0.3902, allocations: 290.2 kB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3903, allocations: 8.031 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.666e-05/0.3903, allocations: 8.188 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.3903, allocations: 34.75 kB / 1.329 GB, free: 15.5 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.292e-05/0.3904, allocations: 12.88 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.3905, allocations: 110.5 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.118e-06/0.3905, allocations: 4.375 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.3906, allocations: 4.375 kB / 1.329 GB, free: 15.35 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002134/0.3908, allocations: 65.97 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3908, allocations: 0 / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.3908, allocations: 11.94 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.3908, allocations: 0 / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001886/0.391, allocations: 43.95 kB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005783/0.3916, allocations: 251.9 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.3917, allocations: 54.55 kB / 1.33 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.3919, allocations: 28.97 kB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.3919, allocations: 7.922 kB / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.3921, allocations: 75.38 kB / 1.33 GB, free: 14.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3921, allocations: 3.938 kB / 1.33 GB, free: 14.74 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004396/0.3926, allocations: 129.6 kB / 1.33 GB, free: 14.61 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.3926, allocations: 55.41 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.3927, allocations: 105.8 kB / 1.33 GB, free: 14.43 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.766e-05/0.3927, allocations: 33.7 kB / 1.33 GB, free: 14.39 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.508e-05/0.3928, allocations: 80.14 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.3928, allocations: 27.77 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.3929, allocations: 17.72 kB / 1.33 GB, free: 14.26 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.393, allocations: 326.8 kB / 1.33 GB, free: 13.93 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.3931, allocations: 24.23 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.3933, allocations: 64.27 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002246/0.3935, allocations: 96.19 kB / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3935, allocations: 0 / 1.331 GB, free: 13.72 MB / 1.029 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002885/0.3938, allocations: 117.5 kB / 1.331 GB, free: 13.6 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.3938, allocations: 4 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.3938, allocations: 4.125 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.3938, allocations: 4 kB / 1.331 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3939, allocations: 15.98 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.3939, allocations: 4 kB / 1.331 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.731e-05/0.394, allocations: 7.984 kB / 1.331 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.394, allocations: 4 kB / 1.331 GB, free: 13.55 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.000108/0.3941, allocations: 127.8 kB / 1.331 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.457e-05/0.3941, allocations: 3.953 kB / 1.331 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000308/0.3945, allocations: 118 kB / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.3945, allocations: 0 / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3945, allocations: 0 / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.3945, allocations: 0 / 1.331 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004877/0.3949, allocations: 325.5 kB / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.395, allocations: 0 / 1.331 GB, free: 12.93 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.177e-05/0.395, allocations: 11.98 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.395, allocations: 8 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.395, allocations: 0 / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.395, allocations: 0 / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.395, allocations: 3.938 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003444/0.3954, allocations: 207.3 kB / 1.332 GB, free: 12.68 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.562e-05/0.3954, allocations: 11.89 kB / 1.332 GB, free: 12.67 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.3954, allocations: 4 kB / 1.332 GB, free: 12.67 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.3955, allocations: 12.17 kB / 1.332 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.3956, allocations: 11.92 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.3956, allocations: 3.938 kB / 1.332 GB, free: 12.64 MB / 1.029 GB Notification: Performance of sorting global known variables: time 7.322e-05/0.3956, allocations: 87.28 kB / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3956, allocations: 0 / 1.332 GB, free: 12.55 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002603/0.3959, allocations: 12 kB / 1.332 GB, free: 12.54 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008531/0.3968, allocations: 0.7325 MB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003286/0.3971, allocations: 75.94 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3971, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.3972, allocations: 36.22 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.3976, allocations: 16.02 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002389/0.3999, allocations: 1.418 MB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004898/0.4004, allocations: 0.6861 MB / 1.335 GB, free: 9.43 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.786e-05/0.4005, allocations: 4 kB / 1.335 GB, free: 9.426 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.934e-05/0.4005, allocations: 19.42 kB / 1.335 GB, free: 9.406 MB / 1.029 GB Notification: Performance of SimCode: time 6.91e-07/0.4005, allocations: 0 / 1.335 GB, free: 9.406 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.4256, allocations: 1.971 MB / 1.336 GB, free: 7.578 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.7, allocations: 2.328 kB / 1.336 GB, free: 7.578 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.657239261025097] Failed to read output from testmodel.py, exit status != 0: 11.861045302008279 11.880568538 11.487466367 Calling exit ...