Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.0009617/0.0009618, allocations: 91.14 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.00118/0.00118, 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.427/1.427, allocations: 223.3 MB / 240 MB, free: 5.43 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.392/2.392, allocations: 390.4 MB / 0.6655 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003459/0.0003461, allocations: 8 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7823/0.7827, allocations: 142.3 MB / 0.9539 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0009568/0.7837, allocations: 469.6 kB / 0.9543 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00136/0.7851, allocations: 1.045 MB / 0.9553 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.797e-05/0.7852, allocations: 1.219 kB / 0.9553 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.241e-05/0.7852, allocations: 7.875 kB / 0.9554 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.131e-05/0.7853, allocations: 10.22 kB / 0.9554 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003069/0.7856, allocations: 47.08 kB / 0.9554 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.85e-05/0.7857, allocations: 65.62 kB / 0.9555 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.513e-05/0.7858, allocations: 14.86 kB / 0.9555 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.34e-05/0.7859, allocations: 21.23 kB / 0.9555 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.007e-05/0.786, allocations: 29.31 kB / 0.9555 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.786, allocations: 2.344 kB / 0.9555 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.174e-05/0.786, allocations: 17.42 kB / 0.9555 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.801e-05/0.7861, allocations: 14.08 kB / 0.9556 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.712e-05/0.7861, allocations: 30.3 kB / 0.9556 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.216e-05/0.7862, allocations: 57.41 kB / 0.9556 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.7862, allocations: 0 / 0.9556 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.863e-06/0.7862, allocations: 0 / 0.9556 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.7862, allocations: 0 / 0.9556 GB, free: 6.758 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.0004583/0.7867, allocations: 372.2 kB / 0.956 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.7868, allocations: 9.438 kB / 0.956 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.686e-05/0.7868, allocations: 43.67 kB / 0.9561 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.053e-05/0.7868, allocations: 11.73 kB / 0.9561 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.804e-05/0.7869, allocations: 171.1 kB / 0.9562 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.7869, allocations: 1.406 kB / 0.9562 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.787, allocations: 3.938 kB / 0.9562 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001893/0.7871, allocations: 74.94 kB / 0.9563 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.7872, allocations: 0 / 0.9563 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.7872, allocations: 0 / 0.9563 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.7872, allocations: 1.406 kB / 0.9563 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.7874, allocations: 65.16 kB / 0.9564 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005343/0.7879, allocations: 329.1 kB / 0.9567 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.7881, allocations: 64.28 kB / 0.9567 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.39e-05/0.7882, allocations: 44.14 kB / 0.9568 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.7882, allocations: 5.312 kB / 0.9568 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.7884, allocations: 82.33 kB / 0.9569 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.7884, allocations: 0 / 0.9569 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004063/0.7889, allocations: 150.8 kB / 0.957 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.7889, allocations: 52.41 kB / 0.9571 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.876e-05/0.789, allocations: 126 kB / 0.9572 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/0.789, allocations: 29.7 kB / 0.9572 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.7891, allocations: 98.52 kB / 0.9573 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.7891, allocations: 15.31 kB / 0.9573 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.7891, allocations: 0 / 0.9573 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.874e-05/0.7891, allocations: 321.8 kB / 0.9576 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.7893, allocations: 27.02 kB / 0.9577 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.7894, allocations: 83.22 kB / 0.9577 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.7895, allocations: 48.92 kB / 0.9578 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.7895, allocations: 0 / 0.9578 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002842/0.7898, allocations: 135.2 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.7898, allocations: 9.797 kB / 0.9579 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.7898, allocations: 1.625 kB / 0.9579 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.7898, allocations: 1.812 kB / 0.9579 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.79, allocations: 24.34 kB / 0.9579 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.79, allocations: 5.75 kB / 0.9579 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.679e-05/0.7901, allocations: 23.09 kB / 0.958 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.7901, allocations: 9.422 kB / 0.958 GB, free: 4.605 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 6.86e-05/0.7902, allocations: 119.2 kB / 0.9581 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.236e-05/0.7902, allocations: 5.719 kB / 0.9581 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.7902, allocations: 18.05 kB / 0.9581 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.7902, allocations: 1.781 kB / 0.9581 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.7902, allocations: 0 / 0.9581 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.7902, allocations: 0 / 0.9581 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003828/0.7906, allocations: 386.9 kB / 0.9585 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.7906, allocations: 0 / 0.9585 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.15e-05/0.7907, allocations: 12.48 kB / 0.9585 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.7907, allocations: 4 kB / 0.9585 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.7907, allocations: 1.312 kB / 0.9585 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.7907, allocations: 1.031 kB / 0.9585 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.7907, allocations: 0 / 0.9585 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.791, allocations: 218.7 kB / 0.9587 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.791, allocations: 86.84 kB / 0.9588 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.7911, allocations: 1.25 kB / 0.9588 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.931e-05/0.7911, allocations: 10.36 kB / 0.9588 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.7912, allocations: 2.812 kB / 0.9588 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.7912, allocations: 5.953 kB / 0.9588 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.715e-05/0.7912, allocations: 95.66 kB / 0.9589 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7912, allocations: 0 / 0.9589 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002811/0.7915, allocations: 21.27 kB / 0.9589 GB, free: 3.711 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.0005009/0.792, allocations: 0.7606 MB / 0.9597 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002593/0.7923, allocations: 81.67 kB / 0.9597 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7923, allocations: 448 / 0.9597 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.7924, allocations: 41.44 kB / 0.9598 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002729/0.7927, allocations: 16.62 kB / 0.9598 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.7937, allocations: 0.5957 MB / 0.9604 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.7939, allocations: 0.6944 MB / 0.9611 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.718e-05/0.7939, allocations: 7.906 kB / 0.9611 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.436e-05/0.794, allocations: 23.55 kB / 0.9611 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of SimCode: time 1.233e-06/0.794, allocations: 0 / 0.9611 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01149/0.8055, allocations: 1.796 MB / 0.9628 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001395/0.8057, allocations: 205.2 kB / 0.963 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.485, allocations: 2.938 kB / 0.963 GB, free: 0.6719 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat does not exist to compare? outputFormat=mat