Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.395/2.395, allocations: 387.1 MB / 399.7 MB, free: 9.461 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.001285/0.001285, allocations: 184 kB / 492.3 MB, free: 0.6133 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.438/1.438, allocations: 221.3 MB / 0.7871 GB, free: 12.9 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.0008962/0.0008964, allocations: 92.89 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.394e-05/3.412e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.2389, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8543/1.093, allocations: 149.2 MB / 1.358 GB, free: 19.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000198/1.093, allocations: 70.39 kB / 1.358 GB, free: 19.16 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003613/1.097, allocations: 1.098 MB / 1.359 GB, free: 34.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.475e-06/1.097, allocations: 0.6094 kB / 1.359 GB, free: 34.81 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.542e-06/1.097, allocations: 0 / 1.359 GB, free: 34.81 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003797/1.098, allocations: 381.8 kB / 1.36 GB, free: 34.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/1.098, allocations: 7.875 kB / 1.36 GB, free: 34.45 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/1.098, allocations: 32.11 kB / 1.36 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.678e-05/1.098, allocations: 7.938 kB / 1.36 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.465e-05/1.098, allocations: 172 kB / 1.36 GB, free: 34.2 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/1.098, allocations: 3.312 kB / 1.36 GB, free: 34.2 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/1.098, allocations: 4.562 kB / 1.36 GB, free: 34.2 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/1.098, allocations: 48.94 kB / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/1.098, allocations: 0 / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/1.098, allocations: 0 / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/1.098, allocations: 3.984 kB / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.343e-05/1.098, allocations: 23.52 kB / 1.36 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003634/1.098, allocations: 281.5 kB / 1.36 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 8.133e-05/1.098, allocations: 38.97 kB / 1.36 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.328e-05/1.098, allocations: 19.61 kB / 1.36 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/1.099, allocations: 5.281 kB / 1.36 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.737e-05/1.099, allocations: 70.61 kB / 1.36 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=6): time 1.273e-06/1.099, allocations: 0 / 1.36 GB, free: 33.8 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.0001762/1.099, allocations: 68.62 kB / 1.36 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/1.099, allocations: 59.98 kB / 1.36 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.905e-05/1.099, allocations: 97.47 kB / 1.361 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/1.099, allocations: 29.2 kB / 1.361 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.643e-05/1.099, allocations: 84.84 kB / 1.361 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/1.099, allocations: 15.97 kB / 1.361 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/1.099, allocations: 0 / 1.361 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 4.805e-05/1.099, allocations: 324.1 kB / 1.361 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.72e-05/1.099, allocations: 10.91 kB / 1.361 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.684e-05/1.099, allocations: 39.72 kB / 1.361 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.694e-05/1.099, allocations: 17.3 kB / 1.361 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/1.099, allocations: 1.422 kB / 1.361 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001115/1.099, allocations: 84.84 kB / 1.361 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/1.099, allocations: 3.812 kB / 1.361 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/1.099, allocations: 0.7969 kB / 1.361 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/1.099, allocations: 3.969 kB / 1.361 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/1.099, allocations: 19.39 kB / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/1.099, allocations: 0 / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.948e-05/1.1, allocations: 18.45 kB / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/1.1, allocations: 3.875 kB / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 4.488e-05/1.1, allocations: 109.9 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-06/1.1, allocations: 3.906 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001409/1.1, allocations: 85.19 kB / 1.361 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/1.1, allocations: 0 / 1.361 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/1.1, allocations: 7.875 kB / 1.361 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/1.1, allocations: 4.672 kB / 1.361 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/1.1, allocations: 324.6 kB / 1.362 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.1, allocations: 0 / 1.362 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.919e-05/1.1, allocations: 23.19 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/1.1, allocations: 0 / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/1.1, allocations: 4.234 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/1.1, allocations: 0 / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/1.1, allocations: 3.953 kB / 1.362 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/1.1, allocations: 169.8 kB / 1.362 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/1.1, allocations: 81.81 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/1.1, allocations: 4.406 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.943e-05/1.1, allocations: 11.45 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/1.101, allocations: 1.969 kB / 1.362 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.527e-06/1.101, allocations: 8.594 kB / 1.362 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.468e-05/1.101, allocations: 83.59 kB / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.101, allocations: 0 / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002156/1.101, allocations: 19.58 kB / 1.362 GB, free: 32.3 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0003874/1.101, allocations: 0.7248 MB / 1.363 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001008/1.101, allocations: 39.17 kB / 1.363 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/1.101, allocations: 0 / 1.363 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.029e-05/1.101, allocations: 23.06 kB / 1.363 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/1.102, allocations: 10.36 kB / 1.363 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003358/1.102, allocations: 124.3 kB / 1.363 GB, free: 31.51 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002136/1.102, allocations: 0.6833 MB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.271e-05/1.102, allocations: 5.391 kB / 1.364 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.233e-05/1.102, allocations: 15.81 kB / 1.364 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.102, allocations: 0 / 1.364 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01098/1.113, allocations: 1.46 MB / 1.365 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/1.113, allocations: 155.9 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/2.637, allocations: 0 / 1.365 GB, free: 30.39 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat does not exist to compare? outputFormat=mat