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.33/2.33, allocations: 393.5 MB / 408.4 MB, free: 11 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.001354/0.001354, allocations: 174.8 kB / 0.4901 GB, free: 2.234 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.576/1.576, allocations: 223.1 MB / 0.7992 GB, free: 15.73 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.001394/0.001394, allocations: 108.1 kB / 0.9396 GB, free: 2.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004387/0.0004391, allocations: 10.23 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3179/0.3184, allocations: 143 MB / 1.229 GB, free: 85.38 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.53, allocations: 150.1 MB / 1.376 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.5303, allocations: 71.95 kB / 1.376 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.00718/0.5375, allocations: 2.501 MB / 1.378 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.515e-06/0.5375, allocations: 0 / 1.378 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.137e-05/0.5376, allocations: 0 / 1.378 GB, free: 12.54 MB / 0.8855 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.000575/0.5381, allocations: 391.1 kB / 1.379 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.5382, allocations: 8.562 kB / 1.379 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.057e-05/0.5383, allocations: 42.48 kB / 1.379 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.5383, allocations: 7.906 kB / 1.379 GB, free: 12.04 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.5385, allocations: 182.9 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.836e-05/0.5385, allocations: 4 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.5385, allocations: 4 kB / 1.379 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.5388, allocations: 69.66 kB / 1.379 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.5388, allocations: 0 / 1.379 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.5388, allocations: 8 kB / 1.379 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.5388, allocations: 0 / 1.379 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.539, allocations: 55.89 kB / 1.379 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/0.5396, allocations: 312.9 kB / 1.379 GB, free: 11.32 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00018/0.5398, allocations: 70.53 kB / 1.379 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.5398, allocations: 0 / 1.379 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.5401, allocations: 91.47 kB / 1.38 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 2.024e-06/0.5401, allocations: 3.938 kB / 1.38 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.000446/0.5405, allocations: 149.5 kB / 1.38 GB, free: 10.99 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.5406, allocations: 59.34 kB / 1.38 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.172e-05/0.5407, allocations: 113 kB / 1.38 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.5407, allocations: 25.7 kB / 1.38 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.659e-05/0.5408, allocations: 92.05 kB / 1.38 GB, free: 10.68 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.107e-05/0.5408, allocations: 15.84 kB / 1.38 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-06/0.5409, allocations: 0 / 1.38 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.541, allocations: 322.8 kB / 1.38 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.5411, allocations: 31.97 kB / 1.38 GB, free: 10.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.5412, allocations: 85.97 kB / 1.38 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.5414, allocations: 39.98 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.5414, allocations: 4 kB / 1.38 GB, free: 10.16 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004189/0.5418, allocations: 141.3 kB / 1.381 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.5418, allocations: 4.219 kB / 1.381 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5418, allocations: 8 kB / 1.381 GB, free: 10 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.5419, allocations: 4 kB / 1.381 GB, free: 9.996 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.542, allocations: 15.98 kB / 1.381 GB, free: 9.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.616e-05/0.5421, allocations: 11.89 kB / 1.381 GB, free: 9.969 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.5422, allocations: 19.89 kB / 1.381 GB, free: 9.949 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.5422, allocations: 4 kB / 1.381 GB, free: 9.945 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 0.0001159/0.5424, allocations: 118.8 kB / 1.381 GB, free: 9.82 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.5424, allocations: 4 kB / 1.381 GB, free: 9.816 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.496e-05/0.5424, allocations: 8.375 kB / 1.381 GB, free: 9.805 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.5424, allocations: 4 kB / 1.381 GB, free: 9.801 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.5425, allocations: 0 / 1.381 GB, free: 9.801 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.5425, allocations: 7.938 kB / 1.381 GB, free: 9.793 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004753/0.5429, allocations: 382.3 kB / 1.381 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.543, allocations: 0 / 1.381 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.304e-05/0.543, allocations: 11.98 kB / 1.381 GB, free: 9.352 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.543, allocations: 0 / 1.381 GB, free: 9.352 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.5431, allocations: 11.95 kB / 1.381 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.5431, allocations: 0 / 1.381 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.5431, allocations: 4 kB / 1.381 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002898/0.5434, allocations: 215.3 kB / 1.381 GB, free: 9.109 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.039e-05/0.5434, allocations: 81.11 kB / 1.381 GB, free: 9.012 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.5434, allocations: 0 / 1.381 GB, free: 9.012 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.854e-05/0.5435, allocations: 19.94 kB / 1.381 GB, free: 8.992 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.5436, allocations: 11.97 kB / 1.381 GB, free: 8.98 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.5436, allocations: 7.938 kB / 1.381 GB, free: 8.973 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.095e-05/0.5437, allocations: 91.27 kB / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.2e-07/0.5437, allocations: 0 / 1.382 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000255/0.5439, allocations: 23.94 kB / 1.382 GB, free: 8.859 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.0006274/0.5446, allocations: 0.7506 MB / 1.382 GB, free: 8.086 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002974/0.5449, allocations: 95.86 kB / 1.382 GB, free: 7.992 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5449, allocations: 0 / 1.382 GB, free: 7.992 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.545, allocations: 36.42 kB / 1.382 GB, free: 7.957 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.5452, allocations: 16.92 kB / 1.382 GB, free: 7.941 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000946/0.5461, allocations: 1.317 MB / 1.384 GB, free: 6.543 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.5464, allocations: 0.6926 MB / 1.384 GB, free: 5.824 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.046e-05/0.5464, allocations: 7.781 kB / 1.384 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.017e-05/0.5465, allocations: 23.42 kB / 1.384 GB, free: 5.793 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.5465, allocations: 0 / 1.384 GB, free: 5.793 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01307/0.5596, allocations: 1.771 MB / 1.386 GB, free: 4.199 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.5598, allocations: 200.5 kB / 1.386 GB, free: 3.965 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/2.161, allocations: 0 / 1.386 GB, free: 3.965 MB / 0.8855 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