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.19/2.19, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001505/0.001505, allocations: 181.2 kB / 498.1 MB, free: 5.684 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.444/1.444, allocations: 223.2 MB / 0.7948 GB, free: 17.89 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.0009422/0.0009424, allocations: 100.2 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003783/0.0003784, allocations: 10.28 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2958/0.2962, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.187/0.4833, allocations: 149.3 MB / 1.369 GB, free: 12.65 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.4835, allocations: 71.95 kB / 1.369 GB, free: 12.58 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007447/0.491, allocations: 2.51 MB / 1.371 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.606e-06/0.4911, allocations: 0 / 1.371 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.198e-05/0.4911, allocations: 4 kB / 1.371 GB, free: 10.06 MB / 0.8698 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.0007191/0.4918, allocations: 383.1 kB / 1.372 GB, free: 9.641 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 6.932e-05/0.4919, allocations: 11.97 kB / 1.372 GB, free: 9.629 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.65e-05/0.492, allocations: 38.56 kB / 1.372 GB, free: 9.582 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.367e-05/0.4921, allocations: 11.89 kB / 1.372 GB, free: 9.57 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001756/0.4923, allocations: 174.9 kB / 1.372 GB, free: 9.359 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.4923, allocations: 0 / 1.372 GB, free: 9.359 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.435e-05/0.4923, allocations: 8 kB / 1.372 GB, free: 9.352 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002398/0.4926, allocations: 77.59 kB / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.4926, allocations: 0 / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.4926, allocations: 0 / 1.372 GB, free: 9.27 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.4926, allocations: 4 kB / 1.372 GB, free: 9.266 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.4928, allocations: 55.89 kB / 1.372 GB, free: 9.211 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006865/0.4935, allocations: 308.7 kB / 1.372 GB, free: 8.859 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.4937, allocations: 62.58 kB / 1.372 GB, free: 8.789 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.4938, allocations: 11.98 kB / 1.372 GB, free: 8.777 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.494, allocations: 79.5 kB / 1.372 GB, free: 8.688 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 2.455e-06/0.494, allocations: 0 / 1.372 GB, free: 8.688 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004636/0.4945, allocations: 149.5 kB / 1.373 GB, free: 8.535 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.24e-05/0.4945, allocations: 51.41 kB / 1.373 GB, free: 8.473 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.214e-05/0.4946, allocations: 116.9 kB / 1.373 GB, free: 8.352 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.4947, allocations: 29.7 kB / 1.373 GB, free: 8.316 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.4947, allocations: 96.03 kB / 1.373 GB, free: 8.219 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.4948, allocations: 19.8 kB / 1.373 GB, free: 8.199 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.022e-06/0.4948, allocations: 0 / 1.373 GB, free: 8.199 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.4949, allocations: 322.8 kB / 1.373 GB, free: 7.875 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.495, allocations: 31.98 kB / 1.373 GB, free: 7.844 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.4952, allocations: 77.98 kB / 1.373 GB, free: 7.746 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001315/0.4953, allocations: 44.84 kB / 1.373 GB, free: 7.703 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.4953, allocations: 0 / 1.373 GB, free: 7.703 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003257/0.4957, allocations: 141.6 kB / 1.373 GB, free: 7.559 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4957, allocations: 4 kB / 1.373 GB, free: 7.555 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.4957, allocations: 0 / 1.373 GB, free: 7.555 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4957, allocations: 4 kB / 1.373 GB, free: 7.551 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.4959, allocations: 27.97 kB / 1.373 GB, free: 7.523 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.4959, allocations: 7.891 kB / 1.374 GB, free: 7.516 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.544e-05/0.496, allocations: 15.84 kB / 1.374 GB, free: 7.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.496, allocations: 12.05 kB / 1.374 GB, free: 7.488 MB / 0.8698 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 9.626e-05/0.4961, allocations: 131.4 kB / 1.374 GB, free: 7.352 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.734e-05/0.4961, allocations: 7.906 kB / 1.374 GB, free: 7.344 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.092e-05/0.4962, allocations: 8.375 kB / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.4962, allocations: 0 / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.4962, allocations: 0 / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.4962, allocations: 3.953 kB / 1.374 GB, free: 7.328 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/0.4967, allocations: 386.5 kB / 1.374 GB, free: 6.895 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4967, allocations: 0 / 1.374 GB, free: 6.895 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.15e-05/0.4968, allocations: 11.98 kB / 1.374 GB, free: 6.883 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.4968, allocations: 4 kB / 1.374 GB, free: 6.879 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.4968, allocations: 7.953 kB / 1.374 GB, free: 6.871 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4968, allocations: 4 kB / 1.374 GB, free: 6.867 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4968, allocations: 0 / 1.374 GB, free: 6.867 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002994/0.4971, allocations: 215.7 kB / 1.374 GB, free: 6.641 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.021e-05/0.4972, allocations: 81.02 kB / 1.374 GB, free: 6.543 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.4972, allocations: 4 kB / 1.374 GB, free: 6.539 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/0.4973, allocations: 15.94 kB / 1.374 GB, free: 6.523 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/0.4973, allocations: 4 kB / 1.374 GB, free: 6.52 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.4973, allocations: 0 / 1.374 GB, free: 6.52 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.87e-05/0.4974, allocations: 95.27 kB / 1.374 GB, free: 6.426 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4974, allocations: 0 / 1.374 GB, free: 6.426 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002719/0.4977, allocations: 27.92 kB / 1.374 GB, free: 6.398 MB / 0.8698 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.0006719/0.4984, allocations: 0.763 MB / 1.375 GB, free: 5.609 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002848/0.4987, allocations: 91.81 kB / 1.375 GB, free: 5.52 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4987, allocations: 0 / 1.375 GB, free: 5.52 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001215/0.4988, allocations: 36.42 kB / 1.375 GB, free: 5.484 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001995/0.499, allocations: 17.62 kB / 1.375 GB, free: 5.469 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.5, allocations: 1.312 MB / 1.377 GB, free: 4.078 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.5003, allocations: 0.6887 MB / 1.377 GB, free: 3.363 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.446e-05/0.5003, allocations: 15.77 kB / 1.377 GB, free: 3.348 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.841e-05/0.5004, allocations: 23.44 kB / 1.377 GB, free: 3.324 MB / 0.8698 GB Notification: Performance of SimCode: time 2.3e-07/0.5004, allocations: 0 / 1.377 GB, free: 3.324 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01502/0.5154, allocations: 1.785 MB / 1.379 GB, free: 1.75 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000259/0.5157, allocations: 216.7 kB / 1.379 GB, free: 1.512 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/2.04, allocations: 0 / 1.379 GB, free: 1.512 MB / 0.8698 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