Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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.SampleTriggerPositiveStartTime,fileNamePrefix="Buildings_latest_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_latest_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/Buildings 10.0.0-master/package.mo): time 2.574/2.574, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.00137/0.00137, allocations: 179.9 kB / 0.4901 GB, free: 2.23 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.659/1.659, allocations: 223.1 MB / 0.7992 GB, free: 14.74 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.0009552/0.0009547, allocations: 100.3 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005138/0.0005138, allocations: 10.66 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2959, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1885/0.4844, allocations: 150.1 MB / 1.376 GB, free: 3.312 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.4848, allocations: 75.94 kB / 1.376 GB, free: 3.238 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00708/0.4919, allocations: 2.517 MB / 1.378 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4919, allocations: 0 / 1.378 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.396e-06/0.4919, allocations: 4 kB / 1.378 GB, free: 0.7148 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.0005184/0.4925, allocations: 383.1 kB / 1.379 GB, free: 300 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.4925, allocations: 8.562 kB / 1.379 GB, free: 292 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.639e-05/0.4926, allocations: 38.56 kB / 1.379 GB, free: 244 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.706e-05/0.4926, allocations: 7.906 kB / 1.379 GB, free: 236 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.4928, allocations: 175 kB / 1.379 GB, free: 20 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.4928, allocations: 3.984 kB / 1.379 GB, free: 16 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.4928, allocations: 12 kB / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.493, allocations: 69.61 kB / 1.379 GB, free: 15.93 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.493, allocations: 4 kB / 1.379 GB, free: 15.93 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.4931, allocations: 0 / 1.379 GB, free: 15.93 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.4931, allocations: 4 kB / 1.379 GB, free: 15.92 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.4933, allocations: 55.95 kB / 1.379 GB, free: 15.87 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005732/0.4938, allocations: 320.6 kB / 1.379 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.494, allocations: 54.56 kB / 1.379 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.4941, allocations: 11.97 kB / 1.379 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002168/0.4943, allocations: 75.52 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.014e-06/0.4943, allocations: 3.938 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004319/0.4947, allocations: 153.6 kB / 1.38 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.4948, allocations: 51.41 kB / 1.38 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.084e-05/0.4949, allocations: 124.8 kB / 1.38 GB, free: 14.99 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.239e-05/0.4949, allocations: 33.7 kB / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.608e-05/0.495, allocations: 84.14 kB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.495, allocations: 15.8 kB / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.495, allocations: 4 kB / 1.38 GB, free: 14.85 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4951, allocations: 318.8 kB / 1.38 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.4953, allocations: 35.97 kB / 1.38 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.4954, allocations: 74.08 kB / 1.38 GB, free: 14.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001264/0.4956, allocations: 47.92 kB / 1.38 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.4956, allocations: 0 / 1.38 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003284/0.4959, allocations: 149.4 kB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4959, allocations: 4 kB / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.4959, allocations: 0 / 1.381 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.496, allocations: 4 kB / 1.381 GB, free: 14.19 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.4961, allocations: 23.92 kB / 1.381 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.4961, allocations: 4.172 kB / 1.381 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.98e-05/0.4962, allocations: 19.92 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.674e-05/0.4963, allocations: 4 kB / 1.381 GB, free: 14.14 MB / 0.8855 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.311e-05/0.4964, allocations: 121.8 kB / 1.381 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.4964, allocations: 7.906 kB / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/0.4964, allocations: 12.36 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.4964, allocations: 3.938 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4964, allocations: 0 / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.4964, allocations: 7.953 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000486/0.4969, allocations: 386.3 kB / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.497, allocations: 0 / 1.381 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.38e-05/0.497, allocations: 12 kB / 1.381 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.497, allocations: 4 kB / 1.381 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.4971, allocations: 3.953 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.4971, allocations: 3.984 kB / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.4971, allocations: 0 / 1.381 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002992/0.4974, allocations: 211.4 kB / 1.381 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.4974, allocations: 85.02 kB / 1.381 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.4975, allocations: 7.984 kB / 1.381 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.098e-05/0.4975, allocations: 7.953 kB / 1.381 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.115e-05/0.4976, allocations: 7.984 kB / 1.381 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.4976, allocations: 0 / 1.381 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.25e-05/0.4977, allocations: 95.27 kB / 1.382 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4977, allocations: 4 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002594/0.4979, allocations: 20 kB / 1.382 GB, free: 13.05 MB / 0.8855 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.0006354/0.4986, allocations: 0.7604 MB / 1.382 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002822/0.4989, allocations: 92.25 kB / 1.382 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4989, allocations: 0 / 1.382 GB, free: 12.18 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.499, allocations: 43.97 kB / 1.382 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.4992, allocations: 11.95 kB / 1.382 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009725/0.5002, allocations: 1.304 MB / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.5004, allocations: 0.6948 MB / 1.384 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.458e-05/0.5005, allocations: 15.78 kB / 1.384 GB, free: 10 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.5006, allocations: 30.8 kB / 1.384 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of SimCode: time 4.799e-06/0.5006, allocations: 0 / 1.384 GB, free: 9.977 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01281/0.5134, allocations: 1.785 MB / 1.386 GB, free: 8.406 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002316/0.5137, allocations: 226.2 kB / 1.386 GB, free: 8.16 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/2.08, allocations: 0 / 1.386 GB, free: 8.16 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime_fmu --startTime=1 --stopTime=6 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat does not exist to compare? outputFormat=mat