Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.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.001446/0.001446, 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.001698/0.001698, allocations: 219.3 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.44/1.44, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.253/3.253, allocations: 0.5003 GB / 0.8062 GB, free: 28.27 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.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",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.59 kB / 1.17 GB, free: 19.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3671, allocations: 179 MB / 1.345 GB, free: 112 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00243/0.3695, allocations: 0.7401 MB / 1.346 GB, free: 15.36 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001977/0.3715, allocations: 1.178 MB / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.689e-05/0.3715, allocations: 0 / 1.347 GB, free: 14.17 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.974e-05/0.3716, allocations: 11.86 kB / 1.347 GB, free: 14.16 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.074e-05/0.3717, allocations: 15.88 kB / 1.347 GB, free: 14.14 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006202/0.3723, allocations: 142.7 kB / 1.347 GB, free: 14.01 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.3725, allocations: 119.8 kB / 1.347 GB, free: 13.89 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.3727, allocations: 20.17 kB / 1.347 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.3728, allocations: 51.84 kB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.3729, allocations: 51.86 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.3729, allocations: 12 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.265e-05/0.373, allocations: 27.98 kB / 1.348 GB, free: 13.73 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.664e-05/0.3731, allocations: 11.94 kB / 1.348 GB, free: 13.71 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.3732, allocations: 43.83 kB / 1.348 GB, free: 13.67 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.3735, allocations: 131.8 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3735, allocations: 0 / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3735, allocations: 4 kB / 1.348 GB, free: 13.54 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.3735, allocations: 0 / 1.348 GB, free: 13.54 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006879/0.3742, allocations: 351.7 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/0.3742, allocations: 8.031 kB / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.65e-05/0.3743, allocations: 192 / 1.348 GB, free: 13.15 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.162e-05/0.3743, allocations: 34.75 kB / 1.348 GB, free: 13.11 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.3744, allocations: 12.89 kB / 1.348 GB, free: 13.1 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.3745, allocations: 122.5 kB / 1.348 GB, free: 12.95 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/0.3746, allocations: 8.375 kB / 1.348 GB, free: 12.95 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.3746, allocations: 4.375 kB / 1.348 GB, free: 12.94 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000237/0.3748, allocations: 81.72 kB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3748, allocations: 0 / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3748, allocations: 0 / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.3749, allocations: 0 / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.375, allocations: 47.95 kB / 1.348 GB, free: 12.81 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.3756, allocations: 299.7 kB / 1.349 GB, free: 12.47 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.3758, allocations: 62.48 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3759, allocations: 28.95 kB / 1.349 GB, free: 12.37 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.3759, allocations: 3.984 kB / 1.349 GB, free: 12.37 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.3762, allocations: 103.3 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.3762, allocations: 0 / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=8): time 0.0004984/0.3767, allocations: 145.6 kB / 1.349 GB, free: 12.11 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.3768, allocations: 55.39 kB / 1.349 GB, free: 12.04 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.3769, allocations: 125.8 kB / 1.349 GB, free: 11.91 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.143e-05/0.3769, allocations: 25.7 kB / 1.349 GB, free: 11.88 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 7.747e-05/0.377, allocations: 96.12 kB / 1.349 GB, free: 11.78 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.151e-05/0.377, allocations: 23.78 kB / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.922e-05/0.3771, allocations: 37.7 kB / 1.349 GB, free: 11.71 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001728/0.3773, allocations: 326.8 kB / 1.35 GB, free: 11.38 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.3775, allocations: 85.59 kB / 1.35 GB, free: 11.29 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.3777, allocations: 122.8 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003186/0.3781, allocations: 146.8 kB / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3781, allocations: 0 / 1.35 GB, free: 10.98 MB / 1.045 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005454/0.3786, allocations: 252.8 kB / 1.35 GB, free: 10.71 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.721e-05/0.3786, allocations: 31.73 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.3787, allocations: 4 kB / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.3787, allocations: 0 / 1.35 GB, free: 10.68 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.3788, allocations: 19.92 kB / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.3788, allocations: 0 / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.379, allocations: 48.05 kB / 1.35 GB, free: 10.61 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.3791, allocations: 4 kB / 1.35 GB, free: 10.61 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$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): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001296/0.3792, allocations: 121.8 kB / 1.35 GB, free: 10.48 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/0.3792, allocations: 7.953 kB / 1.35 GB, free: 10.47 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003304/0.3795, allocations: 129.9 kB / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3795, allocations: 0 / 1.351 GB, free: 10.34 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3795, allocations: 7.938 kB / 1.351 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.3796, allocations: 11.92 kB / 1.351 GB, free: 10.32 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005176/0.3801, allocations: 341.6 kB / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3801, allocations: 0 / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.174e-05/0.3801, allocations: 7.938 kB / 1.351 GB, free: 9.926 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.3801, allocations: 7.984 kB / 1.351 GB, free: 9.918 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3802, allocations: 0 / 1.351 GB, free: 9.918 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.3802, allocations: 3.938 kB / 1.351 GB, free: 9.914 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3802, allocations: 480 / 1.351 GB, free: 9.914 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003826/0.3805, allocations: 223.5 kB / 1.351 GB, free: 9.68 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.556e-05/0.3806, allocations: 7.953 kB / 1.351 GB, free: 9.672 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.3806, allocations: 0 / 1.351 GB, free: 9.672 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.88e-05/0.3807, allocations: 15.86 kB / 1.351 GB, free: 9.656 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/0.3807, allocations: 7.984 kB / 1.351 GB, free: 9.648 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3807, allocations: 4 kB / 1.351 GB, free: 9.645 MB / 1.045 GB Notification: Performance of sorting global known variables: time 8.278e-05/0.3808, allocations: 91.27 kB / 1.351 GB, free: 9.555 MB / 1.045 GB Notification: Performance of sort global known variables: time 1e-07/0.3808, allocations: 4 kB / 1.351 GB, free: 9.551 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002842/0.3811, allocations: 20 kB / 1.351 GB, free: 9.531 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007528/0.3818, allocations: 0.7514 MB / 1.352 GB, free: 8.754 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004481/0.3823, allocations: 193 kB / 1.352 GB, free: 8.547 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3823, allocations: 0 / 1.352 GB, free: 8.547 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001301/0.3824, allocations: 40.22 kB / 1.352 GB, free: 8.508 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.3827, allocations: 20.8 kB / 1.352 GB, free: 8.488 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.3853, allocations: 1.85 MB / 1.354 GB, free: 6.496 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.652e-05/0.3854, allocations: 83.08 kB / 1.354 GB, free: 6.395 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.369e-05/0.3854, allocations: 7.781 kB / 1.354 GB, free: 6.387 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.3855, allocations: 23.42 kB / 1.354 GB, free: 6.363 MB / 1.045 GB Notification: Performance of SimCode: time 8.21e-07/0.3855, allocations: 0 / 1.354 GB, free: 6.363 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.4106, allocations: 2.847 MB / 1.357 GB, free: 3.688 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.85, allocations: 13.73 kB / 1.357 GB, free: 3.676 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.680527598015033] Failed to read output from testmodel.py, exit status != 0: 12.013790848082863 12.030224148 11.653491911 Calling exit ...