Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.001666/0.001666, allocations: 105.2 kB / 19.73 MB, free: 2.113 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.002843/0.002843, allocations: 217.4 kB / 23.03 MB, free: 4.91 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.516/1.516, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.239/3.239, allocations: 0.5003 GB / 0.8062 GB, free: 28.23 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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.002018/0.002018, allocations: 70.25 kB / 1.171 GB, free: 19.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3659, allocations: 179 MB / 1.345 GB, free: 15.91 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002645/0.3686, allocations: 0.7363 MB / 1.346 GB, free: 15.17 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001791/0.3704, allocations: 1.089 MB / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.93e-05/0.3704, allocations: 0 / 1.347 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.271e-05/0.3705, allocations: 3.938 kB / 1.347 GB, free: 14.06 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.106e-05/0.3705, allocations: 11.88 kB / 1.347 GB, free: 14.05 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003436/0.3709, allocations: 59.81 kB / 1.347 GB, free: 13.99 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.371, allocations: 63.84 kB / 1.347 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.3711, allocations: 24.16 kB / 1.347 GB, free: 13.9 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.328e-05/0.3712, allocations: 27.86 kB / 1.347 GB, free: 13.88 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.427e-05/0.3713, allocations: 31.86 kB / 1.347 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.3713, allocations: 8 kB / 1.347 GB, free: 13.84 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.938e-05/0.3714, allocations: 19.98 kB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.639e-05/0.3714, allocations: 23.91 kB / 1.347 GB, free: 13.79 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.967e-05/0.3715, allocations: 23.86 kB / 1.347 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.3717, allocations: 83.91 kB / 1.347 GB, free: 13.69 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3717, allocations: 0 / 1.347 GB, free: 13.69 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.324e-06/0.3717, allocations: 0 / 1.347 GB, free: 13.69 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.3717, allocations: 0 / 1.347 GB, free: 13.69 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007156/0.3724, allocations: 302 kB / 1.348 GB, free: 13.36 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.3724, allocations: 12.03 kB / 1.348 GB, free: 13.35 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.039e-05/0.3725, allocations: 12.17 kB / 1.348 GB, free: 13.34 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.843e-05/0.3725, allocations: 30.75 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.15e-05/0.3725, allocations: 8.891 kB / 1.348 GB, free: 13.29 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.3727, allocations: 110.5 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3727, allocations: 8.375 kB / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.3727, allocations: 4.375 kB / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.3729, allocations: 69.72 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3729, allocations: 4 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.373, allocations: 0 / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.373, allocations: 4 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.3732, allocations: 47.89 kB / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000729/0.3739, allocations: 287.8 kB / 1.348 GB, free: 12.7 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.3741, allocations: 58.48 kB / 1.348 GB, free: 12.63 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.3742, allocations: 32.98 kB / 1.348 GB, free: 12.59 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.3742, allocations: 8 kB / 1.348 GB, free: 12.59 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002862/0.3745, allocations: 75.38 kB / 1.348 GB, free: 12.5 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3745, allocations: 0 / 1.348 GB, free: 12.5 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004497/0.3749, allocations: 121.6 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.481e-05/0.375, allocations: 55.41 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.3751, allocations: 129.7 kB / 1.349 GB, free: 12.17 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.3752, allocations: 29.7 kB / 1.349 GB, free: 12.14 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.744e-05/0.3752, allocations: 96.12 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.3753, allocations: 11.89 kB / 1.349 GB, free: 12.03 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.394e-05/0.3753, allocations: 33.7 kB / 1.349 GB, free: 11.99 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3755, allocations: 318.8 kB / 1.349 GB, free: 11.67 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.3756, allocations: 27.97 kB / 1.349 GB, free: 11.64 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.3758, allocations: 77.98 kB / 1.349 GB, free: 11.54 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.376, allocations: 105.9 kB / 1.349 GB, free: 11.42 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.376, allocations: 3.938 kB / 1.349 GB, free: 11.41 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003339/0.3763, allocations: 137.6 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.3764, allocations: 4 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.3764, allocations: 0 / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.3764, allocations: 4 kB / 1.35 GB, free: 11.27 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.3765, allocations: 19.97 kB / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.3766, allocations: 7.938 kB / 1.35 GB, free: 11.24 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.835e-05/0.3766, allocations: 15.89 kB / 1.35 GB, free: 11.22 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.3767, allocations: 11.92 kB / 1.35 GB, free: 11.21 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001252/0.3768, allocations: 120.1 kB / 1.35 GB, free: 11.09 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.3768, allocations: 7.938 kB / 1.35 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.3768, allocations: 12.38 kB / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3768, allocations: 0 / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3768, allocations: 0 / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.3768, allocations: 0 / 1.35 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005333/0.3774, allocations: 345.5 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3774, allocations: 0 / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.371e-05/0.3774, allocations: 15.92 kB / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.3774, allocations: 4 kB / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.3774, allocations: 3.938 kB / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3775, allocations: 0 / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3775, allocations: 0 / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.3778, allocations: 211.8 kB / 1.35 GB, free: 10.43 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.3778, allocations: 11.89 kB / 1.35 GB, free: 10.42 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.3778, allocations: 3.938 kB / 1.35 GB, free: 10.42 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.079e-05/0.3779, allocations: 4 kB / 1.35 GB, free: 10.41 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.3779, allocations: 7.984 kB / 1.35 GB, free: 10.41 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.3779, allocations: 4 kB / 1.35 GB, free: 10.4 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.833e-05/0.378, allocations: 103.9 kB / 1.35 GB, free: 10.3 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.378, allocations: 0 / 1.35 GB, free: 10.3 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002665/0.3783, allocations: 12 kB / 1.35 GB, free: 10.29 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: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * 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.0006675/0.3789, allocations: 0.7397 MB / 1.351 GB, free: 9.523 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003008/0.3792, allocations: 79.88 kB / 1.351 GB, free: 9.445 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3792, allocations: 0 / 1.351 GB, free: 9.445 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.3794, allocations: 31.97 kB / 1.351 GB, free: 9.414 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.3796, allocations: 12.75 kB / 1.351 GB, free: 9.402 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002077/0.3817, allocations: 1.528 MB / 1.353 GB, free: 7.758 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.234e-05/0.3818, allocations: 75.08 kB / 1.353 GB, free: 7.664 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.096e-05/0.3818, allocations: 7.781 kB / 1.353 GB, free: 7.656 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.747e-05/0.3819, allocations: 23.42 kB / 1.353 GB, free: 7.633 MB / 1.045 GB Notification: Performance of SimCode: time 3.8e-07/0.3819, allocations: 0 / 1.353 GB, free: 7.633 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.4043, allocations: 2.316 MB / 1.355 GB, free: 5.465 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.85, allocations: 22.22 kB / 1.355 GB, free: 5.449 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.838515242096037] Failed to read output from testmodel.py, exit status != 0: 12.009425069089048 12.03280611 11.655664975 Calling exit ...