Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.SampleTrigger,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.339/2.339, allocations: 387.1 MB / 399.7 MB, free: 9.52 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.00102/0.001021, allocations: 176.9 kB / 492.3 MB, free: 0.6328 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.527/1.527, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0008807/0.0008807, allocations: 95.88 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.041e-05/4.043e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2687, allocations: 142.3 MB / 1.213 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8563/1.125, allocations: 149.2 MB / 1.358 GB, free: 19.06 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/1.125, allocations: 73.56 kB / 1.358 GB, free: 19.06 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006817/1.132, allocations: 2.499 MB / 1.361 GB, free: 34.63 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.393e-06/1.132, allocations: 0 / 1.361 GB, free: 34.63 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.237e-05/1.132, allocations: 3.812 kB / 1.361 GB, free: 34.63 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.0003974/1.133, allocations: 373.5 kB / 1.361 GB, free: 34.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/1.133, allocations: 7.75 kB / 1.361 GB, free: 34.27 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/1.133, allocations: 35.58 kB / 1.361 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.093e-05/1.133, allocations: 7.875 kB / 1.361 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.992e-05/1.133, allocations: 179.9 kB / 1.361 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.104e-05/1.133, allocations: 7.344 kB / 1.361 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/1.133, allocations: 5.141 kB / 1.361 GB, free: 34.01 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/1.133, allocations: 54.69 kB / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/1.133, allocations: 4 kB / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/1.133, allocations: 1.359 kB / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/1.133, allocations: 0 / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.115e-05/1.133, allocations: 23.31 kB / 1.361 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000495/1.133, allocations: 313.9 kB / 1.362 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.477e-05/1.134, allocations: 44.7 kB / 1.362 GB, free: 33.67 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.083e-05/1.134, allocations: 23.02 kB / 1.362 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/1.134, allocations: 1.219 kB / 1.362 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.732e-05/1.134, allocations: 64.83 kB / 1.362 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/1.134, allocations: 0 / 1.362 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001715/1.134, allocations: 88.03 kB / 1.362 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/1.134, allocations: 52.77 kB / 1.362 GB, free: 33.51 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.429e-05/1.134, allocations: 115.1 kB / 1.362 GB, free: 33.41 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/1.134, allocations: 29.39 kB / 1.362 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.897e-05/1.134, allocations: 92.62 kB / 1.362 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/1.134, allocations: 16.89 kB / 1.362 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/1.134, allocations: 3.844 kB / 1.362 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.587e-05/1.134, allocations: 317.3 kB / 1.363 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.061e-05/1.134, allocations: 18.59 kB / 1.363 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.398e-05/1.134, allocations: 68.58 kB / 1.363 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.472e-05/1.134, allocations: 21 kB / 1.363 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/1.134, allocations: 4 kB / 1.363 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001609/1.135, allocations: 109.8 kB / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/1.135, allocations: 3.812 kB / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/1.135, allocations: 7.75 kB / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/1.135, allocations: 0 / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/1.135, allocations: 24.77 kB / 1.363 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/1.135, allocations: 8.047 kB / 1.363 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.934e-05/1.135, allocations: 18.53 kB / 1.363 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/1.135, allocations: 3.875 kB / 1.363 GB, free: 32.84 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 6.332e-05/1.135, allocations: 115.3 kB / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.339e-05/1.135, allocations: 5.375 kB / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.047e-05/1.135, allocations: 7.562 kB / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/1.135, allocations: 1.453 kB / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/1.135, allocations: 0 / 1.363 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/1.135, allocations: 11.92 kB / 1.363 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/1.135, allocations: 352.1 kB / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/1.135, allocations: 0 / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.421e-05/1.135, allocations: 11.81 kB / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/1.135, allocations: 3.984 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/1.135, allocations: 0 / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/1.135, allocations: 3.953 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/1.135, allocations: 0 / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/1.136, allocations: 181.5 kB / 1.363 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.478e-05/1.136, allocations: 86.34 kB / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/1.136, allocations: 0 / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.97e-05/1.136, allocations: 10.86 kB / 1.364 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/1.136, allocations: 9.891 kB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/1.136, allocations: 3.844 kB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.203e-05/1.136, allocations: 92.3 kB / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6.61e-07/1.136, allocations: 0 / 1.364 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002418/1.136, allocations: 36.34 kB / 1.364 GB, free: 32.08 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.0003905/1.137, allocations: 0.7072 MB / 1.364 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001226/1.137, allocations: 62.48 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/1.137, allocations: 0 / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.175e-05/1.137, allocations: 22.36 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/1.137, allocations: 14.66 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/1.137, allocations: 144.9 kB / 1.365 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/1.138, allocations: 0.6954 MB / 1.365 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.764e-05/1.138, allocations: 21.14 kB / 1.365 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.394e-05/1.138, allocations: 20.84 kB / 1.365 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of SimCode: time 4.71e-07/1.138, allocations: 0 / 1.365 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01243/1.15, allocations: 1.782 MB / 1.367 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/1.15, allocations: 180.3 kB / 1.367 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/2.672, allocations: 3.125 kB / 1.367 GB, free: 30.17 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat does not exist to compare? outputFormat=mat