Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.306/2.306, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001285/0.001285, allocations: 188.8 kB / 492.3 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 221.3 MB / 0.7871 GB, free: 12.98 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.001045/0.001045, allocations: 94.44 kB / 0.9267 GB, free: 14.05 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.218e-05, allocations: 4 kB / 1.074 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.236, allocations: 142.3 MB / 1.213 GB, free: 38.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9001/1.136, allocations: 149.2 MB / 1.358 GB, free: 18.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/1.136, allocations: 71.09 kB / 1.358 GB, free: 18.91 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007049/1.144, allocations: 2.5 MB / 1.361 GB, free: 34.48 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.583e-06/1.144, allocations: 3.844 kB / 1.361 GB, free: 34.48 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.448e-06/1.144, allocations: 0 / 1.361 GB, free: 34.48 MB / 0.8386 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.0004141/1.144, allocations: 379.8 kB / 1.361 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/1.144, allocations: 7.719 kB / 1.361 GB, free: 34.11 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.601e-05/1.144, allocations: 39.92 kB / 1.361 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.564e-05/1.144, allocations: 7.594 kB / 1.361 GB, free: 34.07 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.59e-05/1.144, allocations: 177 kB / 1.361 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/1.144, allocations: 3.25 kB / 1.361 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/1.144, allocations: 3.906 kB / 1.361 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/1.144, allocations: 56.08 kB / 1.361 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/1.144, allocations: 3.312 kB / 1.361 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/1.144, allocations: 5.266 kB / 1.361 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/1.144, allocations: 0 / 1.361 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.34e-05/1.144, allocations: 24.03 kB / 1.361 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005249/1.145, allocations: 308.5 kB / 1.362 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.121e-05/1.145, allocations: 45.73 kB / 1.362 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.345e-05/1.145, allocations: 20.05 kB / 1.362 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/1.145, allocations: 5.406 kB / 1.362 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.802e-05/1.145, allocations: 66.86 kB / 1.362 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/1.145, allocations: 0 / 1.362 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001766/1.146, allocations: 79.14 kB / 1.362 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/1.146, allocations: 64.27 kB / 1.362 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.058e-05/1.146, allocations: 105.6 kB / 1.362 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/1.146, allocations: 29.48 kB / 1.362 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.261e-05/1.146, allocations: 92.94 kB / 1.362 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/1.146, allocations: 17.69 kB / 1.362 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/1.146, allocations: 7.75 kB / 1.362 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.603e-05/1.146, allocations: 320.3 kB / 1.363 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.91e-05/1.146, allocations: 11.25 kB / 1.363 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.765e-05/1.146, allocations: 68.98 kB / 1.363 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.728e-05/1.146, allocations: 28.27 kB / 1.363 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.146, allocations: 3.938 kB / 1.363 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001641/1.146, allocations: 111.5 kB / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/1.146, allocations: 5.094 kB / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/1.146, allocations: 3.844 kB / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/1.146, allocations: 0 / 1.363 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001347/1.146, allocations: 23.95 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/1.146, allocations: 9.219 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.126e-05/1.147, allocations: 12.73 kB / 1.363 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/1.147, allocations: 5.375 kB / 1.363 GB, free: 32.7 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 8.329e-05/1.147, allocations: 116.2 kB / 1.363 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.561e-05/1.147, allocations: 5.016 kB / 1.363 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.623e-05/1.147, allocations: 7.688 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/1.147, allocations: 3.719 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/1.147, allocations: 5.594 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/1.147, allocations: 3.953 kB / 1.363 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/1.147, allocations: 349.5 kB / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/1.147, allocations: 0 / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.795e-05/1.147, allocations: 11.78 kB / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/1.147, allocations: 0 / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/1.147, allocations: 3.875 kB / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/1.147, allocations: 8.109 kB / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/1.147, allocations: 0 / 1.363 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/1.147, allocations: 180.1 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.144e-05/1.147, allocations: 77.11 kB / 1.364 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/1.147, allocations: 5.531 kB / 1.364 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.934e-05/1.148, allocations: 12.88 kB / 1.364 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/1.148, allocations: 10.73 kB / 1.364 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/1.148, allocations: 4 kB / 1.364 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.834e-05/1.148, allocations: 95.95 kB / 1.364 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.082e-06/1.148, allocations: 0 / 1.364 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002481/1.148, allocations: 36.62 kB / 1.364 GB, free: 31.92 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.0004364/1.148, allocations: 0.7184 MB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001308/1.148, allocations: 60.67 kB / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/1.149, allocations: 0 / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.324e-05/1.149, allocations: 22.09 kB / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001861/1.149, allocations: 9.5 kB / 1.364 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004285/1.149, allocations: 147.6 kB / 1.365 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/1.149, allocations: 0.6964 MB / 1.365 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.307e-05/1.15, allocations: 13.58 kB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/1.15, allocations: 21.08 kB / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of SimCode: time 4.31e-07/1.15, allocations: 0 / 1.365 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01292/1.163, allocations: 1.803 MB / 1.367 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/1.163, allocations: 189.6 kB / 1.367 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.654/2.817, allocations: 2.031 kB / 1.367 GB, free: 30.03 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime_fmu --startTime=-2 --stopTime=3 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat does not exist to compare? outputFormat=mat