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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009848/0.0009847, allocations: 86.41 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.4/2.4, allocations: 390.4 MB / 0.6655 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.000363, allocations: 8 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7994/0.7998, allocations: 142.3 MB / 0.9539 GB, free: 8.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.000912/0.8007, allocations: 469.5 kB / 0.9543 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.802, allocations: 1.133 MB / 0.9554 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.855e-05/0.802, allocations: 0 / 0.9554 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.8021, allocations: 1.562 kB / 0.9554 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.603e-05/0.8021, allocations: 3.938 kB / 0.9554 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004243/0.8026, allocations: 123.9 kB / 0.9555 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000125/0.8027, allocations: 107.9 kB / 0.9556 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.8028, allocations: 15.39 kB / 0.9557 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.083e-05/0.8029, allocations: 39.94 kB / 0.9557 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.245e-05/0.803, allocations: 38.2 kB / 0.9557 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.803, allocations: 5.875 kB / 0.9557 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.967e-05/0.8031, allocations: 19.05 kB / 0.9558 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.125e-05/0.8031, allocations: 15.7 kB / 0.9558 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.337e-05/0.8032, allocations: 40.92 kB / 0.9558 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.8033, allocations: 86.55 kB / 0.9559 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.8033, allocations: 1.031 kB / 0.9559 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8033, allocations: 0 / 0.9559 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.8034, allocations: 0 / 0.9559 GB, free: 6.57 MB / 0.7169 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.0005101/0.8039, allocations: 400.6 kB / 0.9563 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.8039, allocations: 9.531 kB / 0.9563 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.678e-05/0.804, allocations: 36.97 kB / 0.9563 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.804, allocations: 18 kB / 0.9563 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.241e-05/0.8041, allocations: 170.2 kB / 0.9565 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.825e-05/0.8041, allocations: 7.938 kB / 0.9565 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.8042, allocations: 10.56 kB / 0.9565 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001998/0.8044, allocations: 72.78 kB / 0.9566 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.8044, allocations: 0 / 0.9566 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.8044, allocations: 9.25 kB / 0.9566 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.8044, allocations: 1.094 kB / 0.9566 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.8046, allocations: 58.69 kB / 0.9567 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004308/0.8051, allocations: 350.1 kB / 0.957 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.8052, allocations: 60.95 kB / 0.9571 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.589e-05/0.8053, allocations: 44.83 kB / 0.9571 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.8054, allocations: 3.953 kB / 0.9571 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.8056, allocations: 100.8 kB / 0.9572 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.8056, allocations: 1.156 kB / 0.9572 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004381/0.8061, allocations: 161.5 kB / 0.9573 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/0.8061, allocations: 54.16 kB / 0.9574 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.07e-05/0.8062, allocations: 119.2 kB / 0.9575 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.8062, allocations: 35.92 kB / 0.9575 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.092e-05/0.8063, allocations: 101 kB / 0.9576 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.8063, allocations: 18.64 kB / 0.9577 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.8063, allocations: 1.406 kB / 0.9577 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.053e-05/0.8064, allocations: 317.9 kB / 0.958 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.8065, allocations: 59.3 kB / 0.958 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.8067, allocations: 97.64 kB / 0.9581 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.8068, allocations: 87.33 kB / 0.9582 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8069, allocations: 1.688 kB / 0.9582 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000403/0.8073, allocations: 231.3 kB / 0.9584 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.8073, allocations: 41.61 kB / 0.9585 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.8073, allocations: 2.656 kB / 0.9585 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.8073, allocations: 1.625 kB / 0.9585 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.8075, allocations: 20.83 kB / 0.9585 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.8075, allocations: 2.594 kB / 0.9585 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002098/0.8077, allocations: 56.36 kB / 0.9585 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.8077, allocations: 14.3 kB / 0.9586 GB, free: 4.188 MB / 0.7169 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 () * Number of clocked 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.306e-05/0.8078, allocations: 117 kB / 0.9587 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.291e-05/0.8078, allocations: 6.547 kB / 0.9587 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002827/0.8081, allocations: 143.7 kB / 0.9588 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.8081, allocations: 3.984 kB / 0.9588 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.8081, allocations: 1.781 kB / 0.9588 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.8081, allocations: 0 / 0.9588 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003562/0.8085, allocations: 387.3 kB / 0.9592 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.8085, allocations: 3.953 kB / 0.9592 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.968e-05/0.8086, allocations: 17.55 kB / 0.9592 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.8086, allocations: 0 / 0.9592 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.8086, allocations: 1.375 kB / 0.9592 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.8086, allocations: 4 kB / 0.9592 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.8086, allocations: 1.375 kB / 0.9592 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002653/0.8089, allocations: 221.3 kB / 0.9594 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.484e-05/0.8089, allocations: 87.72 kB / 0.9595 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.8089, allocations: 4 kB / 0.9595 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.013e-05/0.809, allocations: 14.86 kB / 0.9595 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.788e-05/0.8091, allocations: 2.75 kB / 0.9595 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.8091, allocations: 6.75 kB / 0.9595 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.609e-05/0.8091, allocations: 95.56 kB / 0.9596 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8091, allocations: 0 / 0.9596 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002652/0.8094, allocations: 24.62 kB / 0.9596 GB, free: 3.219 MB / 0.7169 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 () * Number of clocked 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.0005243/0.8099, allocations: 0.7629 MB / 0.9604 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003579/0.8103, allocations: 189.1 kB / 0.9606 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.8103, allocations: 0 / 0.9606 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.8104, allocations: 61.23 kB / 0.9606 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.8107, allocations: 18.91 kB / 0.9606 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.8119, allocations: 0.6994 MB / 0.9613 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.8121, allocations: 0.691 MB / 0.962 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.674e-05/0.8121, allocations: 7 kB / 0.962 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.057e-05/0.8122, allocations: 23.23 kB / 0.962 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of SimCode: time 4.51e-07/0.8122, allocations: 4 kB / 0.962 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01344/0.8256, allocations: 2.212 MB / 0.9642 GB, free: 24 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002311/0.8259, allocations: 194.1 kB / 0.9644 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.744/2.57, allocations: 4 kB / 0.9644 GB, free: 15.79 MB / 0.7325 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