Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.392/2.392, allocations: 390.3 MB / 402.8 MB, free: 6.629 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.001472/0.001472, allocations: 180.8 kB / 496.1 MB, free: 12.83 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 221.3 MB / 0.7915 GB, free: 5.355 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.000867/0.000867, allocations: 95.55 kB / 0.9318 GB, free: 5.664 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.692e-05/2.696e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2611, allocations: 143 MB / 1.219 GB, free: 13.35 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9846/1.246, allocations: 150.5 MB / 1.366 GB, free: 3.465 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/1.246, allocations: 69.27 kB / 1.366 GB, free: 3.43 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006699/1.253, allocations: 2.262 MB / 1.368 GB, free: 1.461 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.633e-06/1.253, allocations: 3.938 kB / 1.368 GB, free: 1.457 MB / 0.823 GB Notification: Performance of Transformations before backend: time 7.885e-06/1.253, allocations: 4 kB / 1.368 GB, free: 1.453 MB / 0.823 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.0004988/1.253, allocations: 407.2 kB / 1.368 GB, free: 1.016 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.253, allocations: 8.031 kB / 1.368 GB, free: 1.008 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/1.253, allocations: 34.55 kB / 1.369 GB, free: 0.9648 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/1.253, allocations: 19.48 kB / 1.369 GB, free: 0.9492 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/1.254, allocations: 171 kB / 1.369 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.009e-05/1.254, allocations: 7.938 kB / 1.369 GB, free: 0.7344 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.841e-05/1.254, allocations: 8 kB / 1.369 GB, free: 0.7266 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/1.254, allocations: 59.67 kB / 1.369 GB, free: 0.6719 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/1.254, allocations: 4 kB / 1.369 GB, free: 0.668 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/1.254, allocations: 3.875 kB / 1.369 GB, free: 0.668 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/1.254, allocations: 0 / 1.369 GB, free: 0.668 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.475e-05/1.254, allocations: 23 kB / 1.369 GB, free: 0.6523 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005688/1.255, allocations: 345.6 kB / 1.369 GB, free: 304 kB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/1.255, allocations: 48.83 kB / 1.369 GB, free: 252 kB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.025e-05/1.255, allocations: 23.86 kB / 1.369 GB, free: 232 kB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/1.255, allocations: 0 / 1.369 GB, free: 232 kB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/1.255, allocations: 86.97 kB / 1.369 GB, free: 140 kB / 0.823 GB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/1.255, allocations: 0 / 1.369 GB, free: 140 kB / 0.823 GB Notification: Performance of matching and sorting (n=8): time 0.0002221/1.255, allocations: 92.95 kB / 1.369 GB, free: 56 kB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/1.255, allocations: 63.39 kB / 1.369 GB, free: 15.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.099e-05/1.255, allocations: 106.5 kB / 1.37 GB, free: 15.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/1.255, allocations: 33.2 kB / 1.37 GB, free: 15.84 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.53e-05/1.255, allocations: 99.72 kB / 1.37 GB, free: 15.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/1.255, allocations: 15.19 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.242e-05/1.255, allocations: 7.125 kB / 1.37 GB, free: 15.73 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000134/1.256, allocations: 322.1 kB / 1.37 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.673e-05/1.256, allocations: 34.5 kB / 1.37 GB, free: 15.39 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/1.256, allocations: 82.02 kB / 1.37 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/1.256, allocations: 71.36 kB / 1.37 GB, free: 15.24 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.256, allocations: 0 / 1.37 GB, free: 15.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003188/1.256, allocations: 184.3 kB / 1.37 GB, free: 15.08 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/1.256, allocations: 41.12 kB / 1.37 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/1.256, allocations: 4 kB / 1.37 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/1.256, allocations: 3.953 kB / 1.37 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/1.256, allocations: 23.92 kB / 1.37 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/1.256, allocations: 4 kB / 1.37 GB, free: 15 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/1.257, allocations: 44.12 kB / 1.37 GB, free: 14.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/1.257, allocations: 15.17 kB / 1.37 GB, free: 14.95 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.467e-05/1.257, allocations: 111.9 kB / 1.371 GB, free: 14.83 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/1.257, allocations: 7.906 kB / 1.371 GB, free: 14.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001899/1.257, allocations: 112.1 kB / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/1.257, allocations: 3.953 kB / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/1.257, allocations: 0 / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/1.257, allocations: 0 / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003203/1.257, allocations: 342.5 kB / 1.371 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/1.257, allocations: 0 / 1.371 GB, free: 14.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.449e-05/1.258, allocations: 15.92 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/1.258, allocations: 4 kB / 1.371 GB, free: 14.34 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/1.258, allocations: 7.953 kB / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/1.258, allocations: 0 / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/1.258, allocations: 0 / 1.371 GB, free: 14.33 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/1.258, allocations: 198.3 kB / 1.371 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.716e-05/1.258, allocations: 81.02 kB / 1.371 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/1.258, allocations: 0 / 1.371 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/1.258, allocations: 19.38 kB / 1.371 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.9e-05/1.258, allocations: 15.92 kB / 1.371 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/1.258, allocations: 3.938 kB / 1.371 GB, free: 14 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.686e-05/1.258, allocations: 90.66 kB / 1.371 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.258, allocations: 0 / 1.371 GB, free: 13.92 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002476/1.258, allocations: 30.86 kB / 1.371 GB, free: 13.89 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.0005099/1.259, allocations: 0.737 MB / 1.372 GB, free: 13.15 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002453/1.259, allocations: 154.6 kB / 1.372 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.259, allocations: 0 / 1.372 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.553e-05/1.259, allocations: 31.5 kB / 1.372 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/1.259, allocations: 18.03 kB / 1.372 GB, free: 12.98 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004279/1.26, allocations: 141.5 kB / 1.373 GB, free: 12.82 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/1.26, allocations: 0.6965 MB / 1.373 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.402e-05/1.26, allocations: 11.77 kB / 1.373 GB, free: 12.08 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/1.26, allocations: 15.12 kB / 1.373 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.26, allocations: 0 / 1.373 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01342/1.274, allocations: 2.209 MB / 1.375 GB, free: 10.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/1.274, allocations: 178.1 kB / 1.376 GB, free: 9.793 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.655/2.929, allocations: 4 kB / 1.376 GB, free: 9.789 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat does not exist to compare? outputFormat=mat