Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.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.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay",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.001351/0.001351, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001534/0.001535, allocations: 177.3 kB / 15.95 MB, free: 216 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.327/1.327, allocations: 223.2 MB / 239.9 MB, free: 5.387 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.375/2.375, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005911/0.0005913, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7557/0.7563, allocations: 142.3 MB / 0.9536 GB, free: 8.109 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001368/0.7577, allocations: 1.124 MB / 0.9547 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008416/0.7585, allocations: 410.3 kB / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.778e-05/0.7586, allocations: 1.344 kB / 0.9551 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.234e-05/0.7586, allocations: 3.984 kB / 0.9551 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.36e-05/0.7587, allocations: 9.609 kB / 0.9551 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.7589, allocations: 15.45 kB / 0.9551 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.307e-05/0.759, allocations: 31.8 kB / 0.9551 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.191e-05/0.7591, allocations: 14.64 kB / 0.9551 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.764e-05/0.7591, allocations: 19.67 kB / 0.9552 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.216e-05/0.7592, allocations: 17.47 kB / 0.9552 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.7592, allocations: 1.75 kB / 0.9552 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.232e-05/0.7592, allocations: 1.938 kB / 0.9552 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.829e-05/0.7593, allocations: 5.438 kB / 0.9552 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.548e-05/0.7593, allocations: 34.42 kB / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.444e-05/0.7594, allocations: 25.41 kB / 0.9552 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.7594, allocations: 0 / 0.9552 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.084e-06/0.7594, allocations: 0 / 0.9552 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.7594, allocations: 4.938 kB / 0.9553 GB, free: 6.77 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004973/0.7599, allocations: 394.1 kB / 0.9556 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.7599, allocations: 9.031 kB / 0.9556 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.342e-05/0.76, allocations: 40.36 kB / 0.9557 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.772e-05/0.76, allocations: 6.391 kB / 0.9557 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.629e-05/0.7601, allocations: 162.6 kB / 0.9558 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.7601, allocations: 5.125 kB / 0.9558 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.7601, allocations: 3.562 kB / 0.9558 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.7602, allocations: 60.03 kB / 0.9559 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.7603, allocations: 1.312 kB / 0.9559 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.577e-06/0.7603, allocations: 0 / 0.9559 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.7603, allocations: 5.281 kB / 0.9559 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.157e-05/0.7603, allocations: 21.34 kB / 0.9559 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003525/0.7607, allocations: 277.7 kB / 0.9562 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.3e-05/0.7608, allocations: 40.14 kB / 0.9562 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.7608, allocations: 5.234 kB / 0.9562 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/0.761, allocations: 98.84 kB / 0.9563 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.761, allocations: 0 / 0.9563 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002772/0.7613, allocations: 229 kB / 0.9565 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.7613, allocations: 83.59 kB / 0.9566 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.518e-05/0.7614, allocations: 111.9 kB / 0.9567 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.7614, allocations: 30.89 kB / 0.9568 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.961e-05/0.7614, allocations: 81.27 kB / 0.9568 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.7614, allocations: 15.38 kB / 0.9569 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.7615, allocations: 1.469 kB / 0.9569 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.762e-05/0.7615, allocations: 320.1 kB / 0.9572 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.9e-05/0.7615, allocations: 12.5 kB / 0.9572 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.06e-05/0.7616, allocations: 42 kB / 0.9572 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.35e-05/0.7616, allocations: 47.95 kB / 0.9573 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.7616, allocations: 1.5 kB / 0.9573 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000131/0.7618, allocations: 119.5 kB / 0.9574 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.745e-05/0.7618, allocations: 42.34 kB / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.7618, allocations: 0 / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.7618, allocations: 8.922 kB / 0.9574 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.078e-05/0.7619, allocations: 3.406 kB / 0.9574 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.7619, allocations: 5.219 kB / 0.9574 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.479e-05/0.762, allocations: 10.55 kB / 0.9574 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-06/0.762, allocations: 3.938 kB / 0.9574 GB, free: 4.508 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.442e-05/0.7621, allocations: 146.3 kB / 0.9576 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.7621, allocations: 8.125 kB / 0.9576 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.598e-05/0.7621, allocations: 13.8 kB / 0.9576 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.7621, allocations: 8.891 kB / 0.9576 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.7621, allocations: 5.469 kB / 0.9576 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.7621, allocations: 3.938 kB / 0.9576 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.7624, allocations: 399.3 kB / 0.958 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.7625, allocations: 0 / 0.958 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.286e-06/0.7625, allocations: 1.188 kB / 0.958 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.7625, allocations: 9.188 kB / 0.958 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.7625, allocations: 1.188 kB / 0.958 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.7625, allocations: 1.125 kB / 0.958 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.7625, allocations: 480 / 0.958 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001686/0.7627, allocations: 239.7 kB / 0.9582 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.671e-05/0.7627, allocations: 83.22 kB / 0.9583 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.217e-05/0.7627, allocations: 6.609 kB / 0.9583 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.7628, allocations: 12.11 kB / 0.9583 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.7629, allocations: 7.406 kB / 0.9584 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.7629, allocations: 2.656 kB / 0.9584 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.371e-05/0.763, allocations: 97.45 kB / 0.9584 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.763, allocations: 0 / 0.9584 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002273/0.7632, allocations: 14.62 kB / 0.9585 GB, free: 3.516 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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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.0003399/0.7635, allocations: 0.7617 MB / 0.9592 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.7637, allocations: 114.4 kB / 0.9593 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.7637, allocations: 5.281 kB / 0.9593 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.332e-05/0.7638, allocations: 92.02 kB / 0.9594 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.764, allocations: 16.83 kB / 0.9594 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007435/0.7648, allocations: 0.7815 MB / 0.9602 GB, free: 1.867 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.7649, allocations: 0.6891 MB / 0.9609 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.802e-05/0.7649, allocations: 3.438 kB / 0.9609 GB, free: 1.164 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.684e-05/0.765, allocations: 18.17 kB / 0.9609 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of SimCode: time 2.41e-07/0.765, allocations: 5.281 kB / 0.9609 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01266/0.7776, allocations: 1.57 MB / 0.9624 GB, free: 424 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/0.7779, allocations: 180.1 kB / 0.9626 GB, free: 180 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.728/2.506, allocations: 0 / 0.9626 GB, free: 180 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat does not exist to compare? outputFormat=mat