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.354/2.354, allocations: 387.1 MB / 399.7 MB, free: 9.441 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.001456/0.001455, allocations: 172.9 kB / 492.3 MB, free: 0.5938 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.535/1.535, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0008917/0.000892, allocations: 97.77 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.27e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2322, allocations: 142.4 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9086/1.141, allocations: 149.7 MB / 1.359 GB, free: 18.84 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002142/1.141, allocations: 67.34 kB / 1.359 GB, free: 18.84 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00687/1.148, allocations: 2.273 MB / 1.361 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.433e-06/1.148, allocations: 0 / 1.361 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.054e-05/1.148, allocations: 0 / 1.361 GB, free: 34.43 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.0004869/1.149, allocations: 410.9 kB / 1.361 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/1.149, allocations: 16.47 kB / 1.361 GB, free: 34.03 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.688e-05/1.149, allocations: 38.36 kB / 1.361 GB, free: 33.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/1.149, allocations: 11.66 kB / 1.361 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.05e-05/1.149, allocations: 176.4 kB / 1.362 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/1.149, allocations: 3.906 kB / 1.362 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/1.149, allocations: 11.62 kB / 1.362 GB, free: 33.78 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/1.149, allocations: 57.98 kB / 1.362 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/1.149, allocations: 0 / 1.362 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/1.149, allocations: 0 / 1.362 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/1.149, allocations: 7.812 kB / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.474e-05/1.149, allocations: 24.64 kB / 1.362 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004517/1.15, allocations: 340.5 kB / 1.362 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.815e-05/1.15, allocations: 50.89 kB / 1.362 GB, free: 33.44 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.324e-05/1.15, allocations: 23.77 kB / 1.362 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/1.15, allocations: 0 / 1.362 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000125/1.15, allocations: 76.94 kB / 1.362 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/1.15, allocations: 0 / 1.362 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.000196/1.15, allocations: 96.2 kB / 1.362 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/1.15, allocations: 56.36 kB / 1.362 GB, free: 33.28 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.31e-05/1.15, allocations: 112.5 kB / 1.362 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/1.15, allocations: 31.16 kB / 1.362 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.816e-05/1.15, allocations: 103.4 kB / 1.363 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.925e-05/1.15, allocations: 16.16 kB / 1.363 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.186e-05/1.15, allocations: 6.531 kB / 1.363 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.972e-05/1.15, allocations: 319.8 kB / 1.363 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.794e-05/1.15, allocations: 37.53 kB / 1.363 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.052e-05/1.151, allocations: 82.33 kB / 1.363 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.875e-05/1.151, allocations: 66.08 kB / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.151, allocations: 0 / 1.363 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002634/1.151, allocations: 184.1 kB / 1.363 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/1.151, allocations: 43.88 kB / 1.363 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/1.151, allocations: 2.25 kB / 1.363 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/1.151, allocations: 3.906 kB / 1.363 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/1.151, allocations: 23.03 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/1.151, allocations: 3.906 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000209/1.151, allocations: 48.61 kB / 1.363 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/1.151, allocations: 13.7 kB / 1.363 GB, free: 32.53 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 7.347e-05/1.151, allocations: 113.7 kB / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/1.151, allocations: 9.531 kB / 1.363 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001562/1.152, allocations: 97.83 kB / 1.364 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/1.152, allocations: 4 kB / 1.364 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/1.152, allocations: 7.859 kB / 1.364 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/1.152, allocations: 1.594 kB / 1.364 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002299/1.152, allocations: 348.8 kB / 1.364 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/1.152, allocations: 2.25 kB / 1.364 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.817e-05/1.152, allocations: 13.91 kB / 1.364 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/1.152, allocations: 0 / 1.364 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/1.152, allocations: 0 / 1.364 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/1.152, allocations: 3.953 kB / 1.364 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/1.152, allocations: 5.688 kB / 1.364 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/1.152, allocations: 186 kB / 1.364 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.889e-05/1.152, allocations: 88.44 kB / 1.364 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/1.152, allocations: 5.438 kB / 1.364 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.294e-05/1.152, allocations: 10.06 kB / 1.364 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.456e-05/1.152, allocations: 7.516 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/1.152, allocations: 7.906 kB / 1.364 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.232e-05/1.152, allocations: 96.39 kB / 1.364 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.152, allocations: 0 / 1.364 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002877/1.153, allocations: 35.58 kB / 1.364 GB, free: 31.73 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.0004726/1.153, allocations: 0.7356 MB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000233/1.153, allocations: 156 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.154, allocations: 0 / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.379e-05/1.154, allocations: 29.48 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002149/1.154, allocations: 15.42 kB / 1.365 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004539/1.154, allocations: 146.2 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/1.155, allocations: 0.6976 MB / 1.366 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.967e-05/1.155, allocations: 10.53 kB / 1.366 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.027e-05/1.155, allocations: 19.58 kB / 1.366 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of SimCode: time 5.41e-07/1.155, allocations: 0 / 1.366 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01321/1.168, allocations: 2.205 MB / 1.368 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/1.168, allocations: 167.1 kB / 1.368 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.564/2.732, allocations: 4 kB / 1.368 GB, free: 29.71 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