Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.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.001325/0.001325, allocations: 97.88 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.001481/0.001481, allocations: 216.5 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.574/1.574, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.869/2.869, allocations: 476.8 MB / 0.7715 GB, free: 3.891 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",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.001961/0.001961, allocations: 65.88 kB / 1.118 GB, free: 39.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3161, allocations: 169.9 MB / 1.284 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.002146/0.3183, allocations: 0.6599 MB / 1.285 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001724/0.32, allocations: 1.087 MB / 1.286 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.027e-05/0.3201, allocations: 0 / 1.286 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.963e-05/0.3201, allocations: 3.938 kB / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.636e-05/0.3202, allocations: 3.938 kB / 1.286 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.3206, allocations: 47.83 kB / 1.286 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.3207, allocations: 51.84 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.3208, allocations: 3.516 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.402e-05/0.3209, allocations: 27.97 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.384e-05/0.321, allocations: 23.86 kB / 1.286 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.321, allocations: 4 kB / 1.286 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.071e-05/0.3211, allocations: 23.98 kB / 1.286 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.085e-05/0.3211, allocations: 11.98 kB / 1.286 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.239e-05/0.3212, allocations: 19.86 kB / 1.286 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.3213, allocations: 53.27 kB / 1.286 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3214, allocations: 0 / 1.286 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.964e-06/0.3214, allocations: 3.938 kB / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.3214, allocations: 0 / 1.286 GB, free: 8.66 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0007112/0.3221, allocations: 298.2 kB / 1.286 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.3221, allocations: 8.031 kB / 1.286 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.78e-05/0.3221, allocations: 4.172 kB / 1.286 GB, free: 8.324 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.065e-05/0.3222, allocations: 42.75 kB / 1.286 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.163e-05/0.3223, allocations: 4.891 kB / 1.286 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.3224, allocations: 114.5 kB / 1.286 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3224, allocations: 4.375 kB / 1.286 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.3224, allocations: 4.359 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.3227, allocations: 73.92 kB / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.3227, allocations: 0 / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.3227, allocations: 0 / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.3227, allocations: 0 / 1.287 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.3229, allocations: 43.95 kB / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.3234, allocations: 235.9 kB / 1.287 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000176/0.3235, allocations: 54.48 kB / 1.287 GB, free: 7.668 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.3236, allocations: 40.95 kB / 1.287 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.3237, allocations: 3.984 kB / 1.287 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.3239, allocations: 67.39 kB / 1.287 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=6): time 1.433e-06/0.3239, allocations: 4 kB / 1.287 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of matching and sorting (n=6): time 0.0004442/0.3244, allocations: 121.5 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.3244, allocations: 55.39 kB / 1.287 GB, free: 7.348 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.3245, allocations: 101.9 kB / 1.287 GB, free: 7.238 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.121e-05/0.3245, allocations: 33.7 kB / 1.287 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/0.3246, allocations: 92.08 kB / 1.287 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.3246, allocations: 15.97 kB / 1.287 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.3247, allocations: 21.72 kB / 1.287 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3248, allocations: 318.8 kB / 1.288 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.3249, allocations: 23.98 kB / 1.288 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.3251, allocations: 51.41 kB / 1.288 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002309/0.3253, allocations: 83.33 kB / 1.288 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3253, allocations: 0 / 1.288 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002924/0.3256, allocations: 97.58 kB / 1.288 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.3256, allocations: 11.94 kB / 1.288 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3256, allocations: 0 / 1.288 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3256, allocations: 8.094 kB / 1.288 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.3257, allocations: 16.42 kB / 1.288 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.3257, allocations: 0 / 1.288 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.795e-05/0.3258, allocations: 23.88 kB / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.3258, allocations: 0 / 1.288 GB, free: 6.402 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001115/0.3259, allocations: 117.8 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.326, allocations: 8 kB / 1.288 GB, free: 6.27 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003086/0.3263, allocations: 106 kB / 1.288 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.3263, allocations: 4 kB / 1.288 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3263, allocations: 0 / 1.288 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3263, allocations: 0 / 1.288 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005119/0.3268, allocations: 317.6 kB / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3268, allocations: 0 / 1.289 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.175e-05/0.3269, allocations: 11.92 kB / 1.289 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.3269, allocations: 4 kB / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.3269, allocations: 0 / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3269, allocations: 0 / 1.289 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3269, allocations: 7.938 kB / 1.289 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003165/0.3272, allocations: 195.5 kB / 1.289 GB, free: 5.562 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.098e-05/0.3272, allocations: 3.953 kB / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.3272, allocations: 0 / 1.289 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.99e-05/0.3273, allocations: 11.98 kB / 1.289 GB, free: 5.547 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.3274, allocations: 7.938 kB / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.3274, allocations: 4 kB / 1.289 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.105e-05/0.3274, allocations: 83.45 kB / 1.289 GB, free: 5.453 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3274, allocations: 4 kB / 1.289 GB, free: 5.449 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002514/0.3277, allocations: 16 kB / 1.289 GB, free: 5.434 MB / 0.9825 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 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0006897/0.3284, allocations: 0.732 MB / 1.29 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002612/0.3286, allocations: 67.88 kB / 1.29 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3286, allocations: 0 / 1.29 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.3287, allocations: 28.17 kB / 1.29 GB, free: 4.582 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.329, allocations: 13.98 kB / 1.29 GB, free: 4.57 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.3308, allocations: 1.38 MB / 1.291 GB, free: 3.094 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.621e-05/0.3309, allocations: 75.19 kB / 1.291 GB, free: 3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.293e-05/0.3309, allocations: 4 kB / 1.291 GB, free: 2.996 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.3309, allocations: 19.58 kB / 1.291 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of SimCode: time 8.91e-07/0.3309, allocations: 0 / 1.291 GB, free: 2.98 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.3531, allocations: 1.967 MB / 1.293 GB, free: 1.176 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.93, allocations: 9.891 kB / 1.293 GB, free: 1.168 MB / 0.9825 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 18.719316911068745] Failed to read output from testmodel.py, exit status != 0: 12.611422462039627 12.102114736 11.777645694 Calling exit ...