Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.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.001872/0.001872, allocations: 101.9 kB / 19.73 MB, free: 2.109 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.002173/0.002173, allocations: 222.5 kB / 23.03 MB, free: 4.906 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.223/3.223, 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.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax",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.002045/0.002045, allocations: 68.89 kB / 1.17 GB, free: 19.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3527, allocations: 179 MB / 1.345 GB, free: 15.96 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.002175/0.3549, allocations: 0.709 MB / 1.346 GB, free: 15.25 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001858/0.3568, allocations: 1.209 MB / 1.347 GB, free: 14.03 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.633e-05/0.3568, allocations: 0 / 1.347 GB, free: 14.03 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.346e-05/0.3568, allocations: 7.922 kB / 1.347 GB, free: 14.02 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 7.345e-05/0.3569, allocations: 11.88 kB / 1.347 GB, free: 14.01 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005903/0.3575, allocations: 144 kB / 1.347 GB, free: 13.87 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.3578, allocations: 115.8 kB / 1.347 GB, free: 13.76 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 9.089e-05/0.3579, allocations: 12 kB / 1.347 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.358, allocations: 51.83 kB / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.3581, allocations: 47.88 kB / 1.348 GB, free: 13.65 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/0.3582, allocations: 12 kB / 1.348 GB, free: 13.64 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 8.458e-05/0.3582, allocations: 27.92 kB / 1.348 GB, free: 13.61 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 2.625e-05/0.3583, allocations: 11.98 kB / 1.348 GB, free: 13.6 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.27e-05/0.3583, allocations: 35.91 kB / 1.348 GB, free: 13.56 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.3586, allocations: 119.8 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3586, allocations: 0 / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3586, allocations: 0 / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.691e-06/0.3586, allocations: 0 / 1.348 GB, free: 13.45 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006441/0.3592, allocations: 343.8 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3593, allocations: 12.03 kB / 1.348 GB, free: 13.06 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.616e-05/0.3593, allocations: 192 / 1.348 GB, free: 13.06 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.3593, allocations: 30.75 kB / 1.348 GB, free: 13.02 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.3594, allocations: 16.89 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.3595, allocations: 122.4 kB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.3595, allocations: 4.375 kB / 1.348 GB, free: 12.86 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.3596, allocations: 4.375 kB / 1.348 GB, free: 12.85 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.3598, allocations: 73.95 kB / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3598, allocations: 4 kB / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.3598, allocations: 0 / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3598, allocations: 0 / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.36, allocations: 43.95 kB / 1.348 GB, free: 12.73 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005181/0.3605, allocations: 279.8 kB / 1.349 GB, free: 12.41 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.3607, allocations: 54.48 kB / 1.349 GB, free: 12.35 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.3608, allocations: 36.91 kB / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.3608, allocations: 0 / 1.349 GB, free: 12.31 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002583/0.3611, allocations: 87.3 kB / 1.349 GB, free: 12.21 MB / 1.045 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.3611, allocations: 0 / 1.349 GB, free: 12.21 MB / 1.045 GB Notification: Performance of matching and sorting (n=7): time 0.0004774/0.3616, allocations: 137.6 kB / 1.349 GB, free: 12.07 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.3616, allocations: 51.41 kB / 1.349 GB, free: 12.01 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.3617, allocations: 113.8 kB / 1.349 GB, free: 11.89 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.022e-05/0.3618, allocations: 33.7 kB / 1.349 GB, free: 11.85 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.808e-05/0.3618, allocations: 92.08 kB / 1.349 GB, free: 11.75 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.3619, allocations: 24.28 kB / 1.349 GB, free: 11.73 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.886e-05/0.3619, allocations: 33.7 kB / 1.349 GB, free: 11.69 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.3621, allocations: 322.8 kB / 1.35 GB, free: 11.37 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001827/0.3623, allocations: 77.61 kB / 1.35 GB, free: 11.29 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002431/0.3625, allocations: 117 kB / 1.35 GB, free: 11.15 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002766/0.3628, allocations: 129 kB / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.3628, allocations: 0 / 1.35 GB, free: 11.01 MB / 1.045 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004941/0.3633, allocations: 228.9 kB / 1.35 GB, free: 10.77 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.371e-05/0.3634, allocations: 41.69 kB / 1.35 GB, free: 10.72 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3634, allocations: 0 / 1.35 GB, free: 10.72 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.3634, allocations: 0 / 1.35 GB, free: 10.72 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.3635, allocations: 16.05 kB / 1.35 GB, free: 10.7 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3635, allocations: 7.938 kB / 1.35 GB, free: 10.7 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.3637, allocations: 27.97 kB / 1.35 GB, free: 10.67 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.582e-05/0.3638, allocations: 7.984 kB / 1.35 GB, free: 10.66 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.0001418/0.3639, allocations: 125.8 kB / 1.35 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.979e-05/0.3639, allocations: 7.953 kB / 1.35 GB, free: 10.52 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003409/0.3643, allocations: 114 kB / 1.35 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.3643, allocations: 0 / 1.35 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.3643, allocations: 0 / 1.35 GB, free: 10.4 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3643, allocations: 7.938 kB / 1.35 GB, free: 10.39 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004666/0.3647, allocations: 329.6 kB / 1.351 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3647, allocations: 3.938 kB / 1.351 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.048e-05/0.3648, allocations: 4 kB / 1.351 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.3648, allocations: 4 kB / 1.351 GB, free: 10.01 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.3648, allocations: 7.984 kB / 1.351 GB, free: 10 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3648, allocations: 4 kB / 1.351 GB, free: 10 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3648, allocations: 3.938 kB / 1.351 GB, free: 9.996 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003471/0.3652, allocations: 203.4 kB / 1.351 GB, free: 9.781 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.603e-05/0.3652, allocations: 7.953 kB / 1.351 GB, free: 9.773 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.3652, allocations: 0 / 1.351 GB, free: 9.773 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.27e-05/0.3653, allocations: 7.984 kB / 1.351 GB, free: 9.766 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.3653, allocations: 15.92 kB / 1.351 GB, free: 9.75 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/0.3654, allocations: 0 / 1.351 GB, free: 9.75 MB / 1.045 GB Notification: Performance of sorting global known variables: time 6.354e-05/0.3654, allocations: 87.28 kB / 1.351 GB, free: 9.664 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3654, allocations: 4.375 kB / 1.351 GB, free: 9.66 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002755/0.3657, allocations: 27.92 kB / 1.351 GB, free: 9.633 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * 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.0008206/0.3665, allocations: 0.7402 MB / 1.352 GB, free: 8.867 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004178/0.3669, allocations: 181 kB / 1.352 GB, free: 8.672 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3669, allocations: 128 / 1.352 GB, free: 8.672 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.3671, allocations: 40.05 kB / 1.352 GB, free: 8.633 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.3674, allocations: 20.06 kB / 1.352 GB, free: 8.613 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00247/0.3698, allocations: 1.781 MB / 1.354 GB, free: 6.699 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.745e-05/0.3699, allocations: 67.62 kB / 1.354 GB, free: 6.613 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 3.467e-05/0.3699, allocations: 7.75 kB / 1.354 GB, free: 6.605 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.967e-05/0.37, allocations: 19.42 kB / 1.354 GB, free: 6.586 MB / 1.045 GB Notification: Performance of SimCode: time 3.01e-07/0.37, allocations: 4 kB / 1.354 GB, free: 6.582 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0243/0.3943, allocations: 2.724 MB / 1.357 GB, free: 4.027 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.86, allocations: 13.25 kB / 1.357 GB, free: 4.016 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 18.610819523921236] Failed to read output from testmodel.py, exit status != 0: 12.020322244963609 12.038070972 11.676138424 Calling exit ...