Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.199/2.199, allocations: 387.4 MB / 394.9 MB, free: 13.45 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.001355/0.001354, allocations: 192.6 kB / 487.4 MB, free: 5.035 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.906/1.906, allocations: 221.5 MB / 0.7824 GB, free: 0.9141 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009175/0.0009175, allocations: 95.8 kB / 0.9219 GB, free: 2.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.905e-05/1.906e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2506, allocations: 142.4 MB / 1.206 GB, free: 43.83 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9146/1.165, allocations: 149 MB / 1.352 GB, free: 18.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/1.166, allocations: 68.92 kB / 1.352 GB, free: 18.07 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00697/1.173, allocations: 2.261 MB / 1.354 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.392e-06/1.173, allocations: 0 / 1.354 GB, free: 33.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.923e-06/1.173, allocations: 0 / 1.354 GB, free: 33.66 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004438/1.173, allocations: 408.3 kB / 1.354 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/1.173, allocations: 15.56 kB / 1.354 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/1.173, allocations: 15.81 kB / 1.354 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.012e-05/1.173, allocations: 175.6 kB / 1.354 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/1.173, allocations: 5.359 kB / 1.354 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/1.173, allocations: 7.719 kB / 1.354 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.508e-05/1.173, allocations: 19.06 kB / 1.354 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.633e-05/1.173, allocations: 54.95 kB / 1.354 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/1.173, allocations: 0 / 1.354 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/1.173, allocations: 0 / 1.354 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/1.173, allocations: 1.453 kB / 1.354 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/1.174, allocations: 319.5 kB / 1.355 GB, free: 32.77 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.098e-05/1.174, allocations: 48.52 kB / 1.355 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.292e-05/1.174, allocations: 15.86 kB / 1.355 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/1.174, allocations: 1.781 kB / 1.355 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001321/1.174, allocations: 79.19 kB / 1.355 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/1.174, allocations: 0 / 1.355 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0001973/1.174, allocations: 90.2 kB / 1.355 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.58e-05/1.174, allocations: 59.3 kB / 1.355 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.761e-05/1.175, allocations: 106.3 kB / 1.355 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/1.175, allocations: 31.27 kB / 1.355 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.822e-05/1.175, allocations: 97.2 kB / 1.355 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/1.175, allocations: 17.12 kB / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.27e-05/1.175, allocations: 4 kB / 1.355 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001027/1.175, allocations: 320.8 kB / 1.356 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.303e-05/1.175, allocations: 33.56 kB / 1.356 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.902e-05/1.175, allocations: 73.5 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001826/1.175, allocations: 46.67 kB / 1.356 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/1.175, allocations: 0 / 1.356 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003102/1.175, allocations: 156.2 kB / 1.356 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/1.176, allocations: 37.86 kB / 1.356 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/1.176, allocations: 1.453 kB / 1.356 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/1.176, allocations: 3.844 kB / 1.356 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/1.176, allocations: 18.53 kB / 1.356 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/1.176, allocations: 9.141 kB / 1.356 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/1.176, allocations: 45.08 kB / 1.356 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.154e-05/1.176, allocations: 12.84 kB / 1.356 GB, free: 31.9 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.66e-05/1.176, allocations: 113 kB / 1.356 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001087/1.176, allocations: 89.19 kB / 1.356 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.153e-05/1.176, allocations: 13.11 kB / 1.356 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/1.176, allocations: 93.94 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/1.176, allocations: 4.781 kB / 1.356 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.176, allocations: 3.953 kB / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/1.176, allocations: 4.031 kB / 1.356 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/1.177, allocations: 326 kB / 1.357 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/1.177, allocations: 0.6875 kB / 1.357 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.939e-05/1.177, allocations: 14.16 kB / 1.357 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/1.177, allocations: 0 / 1.357 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/1.177, allocations: 5.141 kB / 1.357 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/1.177, allocations: 7.953 kB / 1.357 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.177, allocations: 0 / 1.357 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/1.177, allocations: 187.9 kB / 1.357 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.146e-05/1.177, allocations: 82.38 kB / 1.357 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/1.177, allocations: 3.969 kB / 1.357 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/1.177, allocations: 6.953 kB / 1.357 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.015e-05/1.177, allocations: 10.5 kB / 1.357 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/1.177, allocations: 9.062 kB / 1.357 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.7e-05/1.177, allocations: 88.91 kB / 1.357 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.177, allocations: 4 kB / 1.357 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002523/1.177, allocations: 23.34 kB / 1.357 GB, free: 31.1 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 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000449/1.178, allocations: 0.7346 MB / 1.358 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001953/1.178, allocations: 148.5 kB / 1.358 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.178, allocations: 4.312 kB / 1.358 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.231e-05/1.178, allocations: 23.12 kB / 1.358 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001983/1.178, allocations: 15.41 kB / 1.358 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003898/1.179, allocations: 140.1 kB / 1.358 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002629/1.179, allocations: 0.6938 MB / 1.359 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.252e-05/1.179, allocations: 8.906 kB / 1.359 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.2e-05/1.179, allocations: 24.53 kB / 1.359 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of SimCode: time 3.21e-07/1.179, allocations: 0 / 1.359 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/1.2, allocations: 1.825 MB / 1.361 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000144/1.201, allocations: 148.9 kB / 1.361 GB, free: 29.21 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.589/2.789, allocations: 4.5 kB / 1.361 GB, free: 29.21 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat does not exist to compare? outputFormat=mat