Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001715/0.001715, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.002202/0.002202, allocations: 215 kB / 20.13 MB, free: 2.949 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.499/1.499, allocations: 230.6 MB / 253.5 MB, free: 15.1 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 2.951/2.951, allocations: 0.49 GB / 0.7923 GB, free: 1.328 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.Sampler,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler,fileNamePrefix="Buildings_12_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.002003/0.002003, allocations: 71.84 kB / 1.15 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9118/0.9138, allocations: 176.1 MB / 1.321 GB, free: 24.73 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler): time 0.001688/0.9155, allocations: 0.6603 MB / 1.322 GB, free: 24.32 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001051/0.9165, allocations: 1.109 MB / 1.323 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.145e-05/0.9165, allocations: 0 / 1.323 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 4.636e-05/0.9166, allocations: 0 / 1.323 GB, free: 23.5 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.929e-05/0.9167, allocations: 11.88 kB / 1.323 GB, free: 23.49 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002528/0.9169, allocations: 41.27 kB / 1.323 GB, free: 23.47 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 9.372e-05/0.917, allocations: 46.62 kB / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.271e-05/0.9171, allocations: 8.797 kB / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 5.714e-05/0.9171, allocations: 24.95 kB / 1.323 GB, free: 23.43 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.854e-05/0.9172, allocations: 26.47 kB / 1.323 GB, free: 23.42 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.9172, allocations: 2.812 kB / 1.323 GB, free: 23.42 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.692e-05/0.9173, allocations: 25.69 kB / 1.323 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.658e-05/0.9173, allocations: 11.31 kB / 1.323 GB, free: 23.4 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.978e-05/0.9173, allocations: 21.17 kB / 1.323 GB, free: 23.39 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001249/0.9174, allocations: 63.22 kB / 1.323 GB, free: 23.36 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.9174, allocations: 3.938 kB / 1.323 GB, free: 23.36 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.262e-06/0.9174, allocations: 0 / 1.323 GB, free: 23.36 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.9175, allocations: 0 / 1.323 GB, free: 23.36 MB / 1.061 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.0004998/0.918, allocations: 366.6 kB / 1.324 GB, free: 22.99 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.918, allocations: 15.92 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.737e-05/0.918, allocations: 7.047 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.998e-05/0.918, allocations: 34.75 kB / 1.324 GB, free: 22.94 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.483e-05/0.9181, allocations: 7.703 kB / 1.324 GB, free: 22.93 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.687e-05/0.9182, allocations: 166.6 kB / 1.324 GB, free: 22.74 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.9182, allocations: 3.344 kB / 1.324 GB, free: 22.74 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.9182, allocations: 4.375 kB / 1.324 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.9184, allocations: 69.55 kB / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.9184, allocations: 0 / 1.324 GB, free: 22.69 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.9184, allocations: 7.938 kB / 1.324 GB, free: 22.68 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-06/0.9184, allocations: 0 / 1.324 GB, free: 22.68 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.9186, allocations: 37.5 kB / 1.324 GB, free: 22.68 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003389/0.9189, allocations: 279.1 kB / 1.324 GB, free: 22.39 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.9191, allocations: 52.69 kB / 1.324 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.407e-05/0.9192, allocations: 28.14 kB / 1.325 GB, free: 22.35 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.9192, allocations: 6.469 kB / 1.325 GB, free: 22.34 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.9194, allocations: 73.92 kB / 1.325 GB, free: 22.29 MB / 1.061 GB Notification: Performance of pre-optimization done (n=6): time 1.473e-06/0.9194, allocations: 4 kB / 1.325 GB, free: 22.29 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0004017/0.9198, allocations: 118.7 kB / 1.325 GB, free: 22.23 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.9198, allocations: 59.34 kB / 1.325 GB, free: 22.16 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.228e-05/0.9199, allocations: 104.7 kB / 1.325 GB, free: 22.06 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.9199, allocations: 25.7 kB / 1.325 GB, free: 22.03 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.9199, allocations: 90.77 kB / 1.325 GB, free: 21.94 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.893e-05/0.9199, allocations: 25.7 kB / 1.325 GB, free: 21.92 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.704e-05/0.92, allocations: 19.34 kB / 1.325 GB, free: 21.9 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.47e-05/0.92, allocations: 325.3 kB / 1.325 GB, free: 21.58 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.781e-05/0.9201, allocations: 22.95 kB / 1.325 GB, free: 21.58 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.9202, allocations: 54.44 kB / 1.325 GB, free: 21.54 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.9204, allocations: 83.81 kB / 1.325 GB, free: 21.48 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.9204, allocations: 0 / 1.325 GB, free: 21.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002485/0.9207, allocations: 114.4 kB / 1.326 GB, free: 21.42 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.9207, allocations: 6.328 kB / 1.326 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.9207, allocations: 2.969 kB / 1.326 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.9207, allocations: 0 / 1.326 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.9208, allocations: 15.58 kB / 1.326 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.9208, allocations: 3.938 kB / 1.326 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.665e-05/0.9209, allocations: 9.25 kB / 1.326 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.9209, allocations: 2.812 kB / 1.326 GB, free: 21.41 MB / 1.061 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 5.762e-05/0.921, allocations: 117.8 kB / 1.326 GB, free: 21.29 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/0.921, allocations: 6.75 kB / 1.326 GB, free: 21.29 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/0.9212, allocations: 102.1 kB / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.9212, allocations: 0 / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.9212, allocations: 0 / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.9212, allocations: 3.938 kB / 1.326 GB, free: 21.23 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003625/0.9216, allocations: 350.2 kB / 1.326 GB, free: 20.91 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.9216, allocations: 6.906 kB / 1.326 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.866e-05/0.9217, allocations: 8.875 kB / 1.326 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.9217, allocations: 0 / 1.326 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.9217, allocations: 7.328 kB / 1.326 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.9217, allocations: 2.906 kB / 1.326 GB, free: 20.9 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.9217, allocations: 3.938 kB / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.9219, allocations: 194.1 kB / 1.326 GB, free: 20.74 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.82e-05/0.9219, allocations: 85 kB / 1.326 GB, free: 20.64 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.922, allocations: 14.19 kB / 1.326 GB, free: 20.63 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.818e-05/0.9221, allocations: 2.688 kB / 1.326 GB, free: 20.63 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.9221, allocations: 9.891 kB / 1.326 GB, free: 20.63 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.9221, allocations: 2.719 kB / 1.326 GB, free: 20.63 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.89e-05/0.9221, allocations: 88.33 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9221, allocations: 0 / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002484/0.9224, allocations: 10.84 kB / 1.327 GB, free: 20.55 MB / 1.061 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.0004445/0.9228, allocations: 0.7338 MB / 1.327 GB, free: 19.87 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002551/0.9231, allocations: 65.38 kB / 1.327 GB, free: 19.85 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9231, allocations: 0 / 1.327 GB, free: 19.85 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001045/0.9232, allocations: 27.45 kB / 1.327 GB, free: 19.85 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002629/0.9235, allocations: 10.75 kB / 1.327 GB, free: 19.84 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001282/0.9247, allocations: 1.392 MB / 1.329 GB, free: 18.55 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.9248, allocations: 0.6868 MB / 1.329 GB, free: 17.86 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.067e-05/0.9249, allocations: 7.031 kB / 1.329 GB, free: 17.85 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.9249, allocations: 17.45 kB / 1.329 GB, free: 17.84 MB / 1.061 GB Notification: Performance of SimCode: time 3.3e-07/0.9249, allocations: 0 / 1.329 GB, free: 17.84 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01896/0.9439, allocations: 1.791 MB / 1.331 GB, free: 17.43 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.567/9.511, allocations: 13.64 kB / 1.331 GB, free: 17.42 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Discrete_Validation_Sampler.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.Sampler.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.856675375020131] Failed to read output from testmodel.py, exit status != 0: 9.633680938975886 9.651161608 8.730774467 Calling exit ...