Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007734/0.0007733, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009102/0.0009103, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.485/2.485, allocations: 390.4 MB / 0.6655 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003728, allocations: 8 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8184/0.8188, allocations: 142.3 MB / 0.9539 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime): time 0.001116/0.8199, allocations: 466 kB / 0.9543 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001233/0.8212, allocations: 1.05 MB / 0.9553 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.373e-05/0.8212, allocations: 1.344 kB / 0.9553 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.734e-05/0.8213, allocations: 3.938 kB / 0.9553 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.385e-05/0.8214, allocations: 12.5 kB / 0.9554 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.8216, allocations: 52.27 kB / 0.9554 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.8217, allocations: 57.59 kB / 0.9555 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.8219, allocations: 19.22 kB / 0.9555 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.526e-05/0.8219, allocations: 25.92 kB / 0.9555 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.145e-05/0.822, allocations: 21.23 kB / 0.9555 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.822, allocations: 2.781 kB / 0.9555 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.8221, allocations: 15.95 kB / 0.9555 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.903e-05/0.8221, allocations: 19.66 kB / 0.9556 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.145e-05/0.8222, allocations: 29.83 kB / 0.9556 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.8223, allocations: 52.55 kB / 0.9556 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.8223, allocations: 0 / 0.9556 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.234e-06/0.8223, allocations: 1.375 kB / 0.9556 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.8223, allocations: 0 / 0.9556 GB, free: 6.699 MB / 0.7169 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.000478/0.8228, allocations: 372.7 kB / 0.956 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.8228, allocations: 8.844 kB / 0.956 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.355e-05/0.8229, allocations: 40.62 kB / 0.956 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.8229, allocations: 23.47 kB / 0.9561 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.083e-05/0.823, allocations: 170.7 kB / 0.9562 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.823, allocations: 2.344 kB / 0.9562 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.8231, allocations: 7.828 kB / 0.9562 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.8233, allocations: 77.53 kB / 0.9563 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.8233, allocations: 3.938 kB / 0.9563 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.8233, allocations: 1.406 kB / 0.9563 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.8233, allocations: 0 / 0.9563 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.8235, allocations: 62.31 kB / 0.9564 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005606/0.824, allocations: 324.2 kB / 0.9567 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001592/0.8242, allocations: 65.05 kB / 0.9568 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.93e-05/0.8243, allocations: 42.77 kB / 0.9568 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.494e-05/0.8243, allocations: 2.375 kB / 0.9568 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.8245, allocations: 81.83 kB / 0.9569 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.8246, allocations: 1.062 kB / 0.9569 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004067/0.825, allocations: 149.7 kB / 0.957 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.825, allocations: 56.61 kB / 0.9571 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.951e-05/0.8251, allocations: 125.5 kB / 0.9572 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.8251, allocations: 29.7 kB / 0.9572 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.8252, allocations: 95.66 kB / 0.9573 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.8252, allocations: 14.19 kB / 0.9573 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-06/0.8252, allocations: 1.062 kB / 0.9573 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.956e-05/0.8253, allocations: 320.1 kB / 0.9576 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.915e-05/0.8254, allocations: 28.77 kB / 0.9577 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.8255, allocations: 78.86 kB / 0.9577 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001179/0.8256, allocations: 52.47 kB / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.8256, allocations: 1.156 kB / 0.9578 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002795/0.8259, allocations: 134.5 kB / 0.9579 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.8259, allocations: 9.266 kB / 0.9579 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.826, allocations: 1.312 kB / 0.9579 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.826, allocations: 3.969 kB / 0.9579 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.8261, allocations: 19.61 kB / 0.9579 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.8261, allocations: 9.016 kB / 0.958 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.027e-05/0.8262, allocations: 23.5 kB / 0.958 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.434e-05/0.8262, allocations: 4.406 kB / 0.958 GB, free: 4.543 MB / 0.7169 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 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.225e-05/0.8263, allocations: 120.6 kB / 0.9581 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.219e-05/0.8263, allocations: 7.188 kB / 0.9581 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.522e-05/0.8263, allocations: 13.42 kB / 0.9581 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.8264, allocations: 5.219 kB / 0.9581 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.8264, allocations: 0 / 0.9581 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.8264, allocations: 4.969 kB / 0.9581 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003824/0.8268, allocations: 386.2 kB / 0.9585 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.8268, allocations: 0 / 0.9585 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.06e-05/0.8268, allocations: 16.83 kB / 0.9585 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.8268, allocations: 0 / 0.9585 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.8269, allocations: 1.188 kB / 0.9585 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.8269, allocations: 0 / 0.9585 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.8269, allocations: 1.469 kB / 0.9585 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.8271, allocations: 218.2 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.117e-05/0.8271, allocations: 87 kB / 0.9588 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.8272, allocations: 2 kB / 0.9588 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.752e-05/0.8272, allocations: 13.17 kB / 0.9588 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.8273, allocations: 3.312 kB / 0.9588 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.8273, allocations: 1.375 kB / 0.9588 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.892e-05/0.8273, allocations: 95.7 kB / 0.9589 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8273, allocations: 4 kB / 0.9589 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002487/0.8276, allocations: 13.84 kB / 0.9589 GB, free: 3.648 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000475/0.8281, allocations: 0.7683 MB / 0.9597 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000231/0.8283, allocations: 81.89 kB / 0.9598 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.8283, allocations: 5.844 kB / 0.9598 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.674e-05/0.8284, allocations: 36.03 kB / 0.9598 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.8287, allocations: 12.05 kB / 0.9598 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009412/0.8297, allocations: 0.6009 MB / 0.9604 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.8298, allocations: 0.6891 MB / 0.9611 GB, free: 1.668 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.535e-05/0.8298, allocations: 15.83 kB / 0.9611 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.051e-05/0.8299, allocations: 19.56 kB / 0.9611 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.8299, allocations: 0 / 0.9611 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01318/0.8431, allocations: 1.814 MB / 0.9629 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001803/0.8433, allocations: 226.1 kB / 0.9631 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/2.466, allocations: 6.328 kB / 0.9631 GB, free: 0.6172 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat does not exist to compare? outputFormat=mat