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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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="me",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="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.422/2.422, allocations: 390.3 MB / 402.8 MB, free: 6.688 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 180.8 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.527/1.527, allocations: 221.3 MB / 0.7915 GB, free: 5.383 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 87.91 kB / 0.9317 GB, free: 5.688 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.782e-05/3.811e-05, allocations: 7.984 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2984, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9896/1.288, allocations: 150 MB / 1.365 GB, free: 4.047 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/1.288, allocations: 79.5 kB / 1.365 GB, free: 4.004 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007396/1.296, allocations: 2.5 MB / 1.368 GB, free: 1.887 MB / 0.823 GB Notification: Performance of FrontEnd: time 2.355e-06/1.296, allocations: 0 / 1.368 GB, free: 1.887 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.726e-05/1.296, allocations: 4 kB / 1.368 GB, free: 1.883 MB / 0.823 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.0005598/1.296, allocations: 381.8 kB / 1.368 GB, free: 1.473 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 5.83e-05/1.297, allocations: 8.031 kB / 1.368 GB, free: 1.465 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.155e-05/1.297, allocations: 30.56 kB / 1.368 GB, free: 1.426 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.745e-05/1.297, allocations: 11.91 kB / 1.368 GB, free: 1.414 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/1.297, allocations: 174.9 kB / 1.368 GB, free: 1.203 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/1.297, allocations: 7.75 kB / 1.368 GB, free: 1.199 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/1.297, allocations: 4 kB / 1.368 GB, free: 1.195 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/1.297, allocations: 56.55 kB / 1.369 GB, free: 1.145 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/1.297, allocations: 0 / 1.369 GB, free: 1.145 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/1.297, allocations: 0 / 1.369 GB, free: 1.145 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/1.297, allocations: 4 kB / 1.369 GB, free: 1.141 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.26e-05/1.297, allocations: 22.81 kB / 1.369 GB, free: 1.125 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006199/1.298, allocations: 309.7 kB / 1.369 GB, free: 0.793 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001114/1.298, allocations: 53.77 kB / 1.369 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.578e-05/1.298, allocations: 16.61 kB / 1.369 GB, free: 0.7266 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/1.298, allocations: 3.375 kB / 1.369 GB, free: 0.7266 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/1.298, allocations: 62.34 kB / 1.369 GB, free: 0.6602 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 2.355e-06/1.298, allocations: 0 / 1.369 GB, free: 0.6602 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002107/1.298, allocations: 84.22 kB / 1.369 GB, free: 0.582 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/1.298, allocations: 58.91 kB / 1.369 GB, free: 0.5156 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/1.299, allocations: 108.5 kB / 1.369 GB, free: 420 kB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.266e-05/1.299, allocations: 29.7 kB / 1.369 GB, free: 384 kB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 5.173e-05/1.299, allocations: 95.31 kB / 1.369 GB, free: 288 kB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/1.299, allocations: 19.5 kB / 1.369 GB, free: 272 kB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/1.299, allocations: 7.938 kB / 1.369 GB, free: 264 kB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.299, allocations: 322.5 kB / 1.37 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.168e-05/1.299, allocations: 14.56 kB / 1.37 GB, free: 15.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.8e-05/1.299, allocations: 57.02 kB / 1.37 GB, free: 15.86 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.156e-05/1.299, allocations: 26.8 kB / 1.37 GB, free: 15.84 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/1.299, allocations: 0 / 1.37 GB, free: 15.84 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001878/1.299, allocations: 107.6 kB / 1.37 GB, free: 15.74 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/1.299, allocations: 8.219 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.299, allocations: 4 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.899e-05/1.299, allocations: 4 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/1.299, allocations: 23.94 kB / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/1.299, allocations: 3.984 kB / 1.37 GB, free: 15.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.859e-05/1.3, allocations: 19.16 kB / 1.37 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/1.3, allocations: 4 kB / 1.37 GB, free: 15.68 MB / 0.8386 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 () * 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 9.939e-05/1.3, allocations: 121.5 kB / 1.37 GB, free: 15.56 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/1.3, allocations: 4 kB / 1.37 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.543e-05/1.3, allocations: 7.625 kB / 1.37 GB, free: 15.55 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.548e-06/1.3, allocations: 4 kB / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/1.3, allocations: 3.953 kB / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/1.3, allocations: 0 / 1.37 GB, free: 15.54 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/1.3, allocations: 349 kB / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/1.3, allocations: 0 / 1.37 GB, free: 15.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.512e-05/1.3, allocations: 15.94 kB / 1.37 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/1.3, allocations: 4 kB / 1.37 GB, free: 15.15 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/1.3, allocations: 7.938 kB / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/1.3, allocations: 0 / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/1.3, allocations: 0 / 1.37 GB, free: 15.14 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/1.3, allocations: 176.9 kB / 1.371 GB, free: 14.97 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/1.301, allocations: 81.11 kB / 1.371 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/1.301, allocations: 0 / 1.371 GB, free: 14.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.523e-05/1.301, allocations: 27.25 kB / 1.371 GB, free: 14.85 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.775e-05/1.301, allocations: 3.984 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/1.301, allocations: 4 kB / 1.371 GB, free: 14.84 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.267e-05/1.301, allocations: 87.91 kB / 1.371 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.301, allocations: 4 kB / 1.371 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002503/1.301, allocations: 23.19 kB / 1.371 GB, free: 14.73 MB / 0.8386 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 () * 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.0005984/1.302, allocations: 0.7265 MB / 1.372 GB, free: 14 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001789/1.302, allocations: 48.5 kB / 1.372 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/1.302, allocations: 0 / 1.372 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.703e-05/1.302, allocations: 22.75 kB / 1.372 GB, free: 13.95 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/1.302, allocations: 24.3 kB / 1.372 GB, free: 13.93 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005404/1.303, allocations: 139.6 kB / 1.372 GB, free: 13.76 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/1.303, allocations: 0.7004 MB / 1.372 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.094e-05/1.303, allocations: 7.781 kB / 1.372 GB, free: 13.03 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/1.303, allocations: 25.92 kB / 1.372 GB, free: 13.01 MB / 0.8386 GB Notification: Performance of SimCode: time 4.8e-07/1.303, allocations: 0 / 1.372 GB, free: 13.01 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/1.317, allocations: 1.797 MB / 1.374 GB, free: 11.39 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000174/1.318, allocations: 181.4 kB / 1.374 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.594/2.912, allocations: 0 / 1.374 GB, free: 11.16 MB / 0.8386 GB (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/linux/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 --timeout=50 --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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat does not exist to compare? outputFormat=mat