Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_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.001008/0.001008, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001078/0.001078, allocations: 194.7 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001962/0.001962, allocations: 278.9 kB / 290.2 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.913/0.913, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.001631, allocations: 88.08 kB / 0.5946 GB, free: 28.54 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1499, allocations: 86.98 MB / 0.6795 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002518/0.1524, allocations: 1.467 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008222/0.1533, allocations: 437.4 kB / 0.6814 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.694e-05/0.1533, allocations: 4 kB / 0.6814 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.902e-05/0.1534, allocations: 4 kB / 0.6814 GB, free: 15.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.783e-05/0.1535, allocations: 7.922 kB / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.1537, allocations: 15.94 kB / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.935e-05/0.1538, allocations: 47.84 kB / 0.6815 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.154, allocations: 4.281 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.392e-05/0.154, allocations: 27.84 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.516e-05/0.1541, allocations: 19.86 kB / 0.6815 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.317e-05/0.1541, allocations: 4 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.138e-05/0.1542, allocations: 4 kB / 0.6815 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.896e-05/0.1542, allocations: 8 kB / 0.6815 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.369e-05/0.1543, allocations: 19.86 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001149/0.1544, allocations: 47.81 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1544, allocations: 0 / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1544, allocations: 0 / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.1544, allocations: 0 / 0.6816 GB, free: 14.96 MB / 494.1 MB 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.0006741/0.1551, allocations: 385.1 kB / 0.682 GB, free: 14.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.1551, allocations: 12.03 kB / 0.682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.868e-05/0.1552, allocations: 34.75 kB / 0.682 GB, free: 14.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.912e-05/0.1552, allocations: 12.83 kB / 0.682 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.1554, allocations: 172.2 kB / 0.6822 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.1554, allocations: 384 / 0.6822 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.1554, allocations: 8.375 kB / 0.6822 GB, free: 14.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.1556, allocations: 57.8 kB / 0.6822 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.1556, allocations: 0 / 0.6822 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.1556, allocations: 3.984 kB / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.1556, allocations: 0 / 0.6823 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.543e-05/0.1557, allocations: 24 kB / 0.6823 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/0.1561, allocations: 268.8 kB / 0.6825 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.538e-05/0.1562, allocations: 42.56 kB / 0.6826 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.082e-05/0.1563, allocations: 24.97 kB / 0.6826 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.8e-05/0.1563, allocations: 0 / 0.6826 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.1565, allocations: 101.2 kB / 0.6827 GB, free: 13.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.1565, allocations: 0 / 0.6827 GB, free: 13.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002779/0.1568, allocations: 143.5 kB / 0.6828 GB, free: 13.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.75e-05/0.1569, allocations: 77.11 kB / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.842e-05/0.157, allocations: 113.8 kB / 0.683 GB, free: 13.29 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.157, allocations: 29.64 kB / 0.683 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.67e-05/0.1571, allocations: 92.12 kB / 0.6831 GB, free: 13.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.1571, allocations: 23.67 kB / 0.6831 GB, free: 13.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/0.1571, allocations: 37.64 kB / 0.6832 GB, free: 13.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1573, allocations: 318.8 kB / 0.6835 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.259e-05/0.1573, allocations: 15.98 kB / 0.6835 GB, free: 12.76 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.524e-05/0.1573, allocations: 34.58 kB / 0.6835 GB, free: 12.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.1575, allocations: 117.9 kB / 0.6836 GB, free: 12.58 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1575, allocations: 0 / 0.6836 GB, free: 12.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001543/0.1576, allocations: 119.2 kB / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.312e-05/0.1577, allocations: 37.69 kB / 0.6838 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1577, allocations: 0 / 0.6838 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.1577, allocations: 4 kB / 0.6838 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.249e-05/0.1578, allocations: 4 kB / 0.6838 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1578, allocations: 4 kB / 0.6838 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.069e-05/0.1579, allocations: 7.984 kB / 0.6838 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.557e-06/0.1579, allocations: 4.062 kB / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.977e-05/0.158, allocations: 153.5 kB / 0.684 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.413e-05/0.158, allocations: 3.906 kB / 0.684 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.158, allocations: 12.38 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.158, allocations: 0 / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1581, allocations: 3.984 kB / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1581, allocations: 0 / 0.684 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003646/0.1584, allocations: 404.1 kB / 0.6844 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.1585, allocations: 4 kB / 0.6844 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-06/0.1585, allocations: 3.938 kB / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1585, allocations: 4 kB / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.1585, allocations: 0 / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1585, allocations: 0 / 0.6844 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.1585, allocations: 8 kB / 0.6844 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.1587, allocations: 237.6 kB / 0.6846 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.1588, allocations: 85.09 kB / 0.6847 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.002e-05/0.1588, allocations: 0 / 0.6847 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.765e-05/0.1589, allocations: 12 kB / 0.6847 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.1589, allocations: 11.92 kB / 0.6847 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.159, allocations: 7.938 kB / 0.6847 GB, free: 11.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.443e-05/0.159, allocations: 95.33 kB / 0.6848 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.159, allocations: 0 / 0.6848 GB, free: 11.24 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002173/0.1593, allocations: 15.91 kB / 0.6848 GB, free: 11.23 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004574/0.1597, allocations: 0.7705 MB / 0.6856 GB, free: 10.43 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001626/0.1599, allocations: 115.3 kB / 0.6857 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1599, allocations: 0 / 0.6857 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.704e-05/0.16, allocations: 87.39 kB / 0.6858 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.1603, allocations: 19.92 kB / 0.6858 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.1615, allocations: 1.43 MB / 0.6872 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002432/0.1617, allocations: 0.6848 MB / 0.6879 GB, free: 7.941 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.986e-05/0.1618, allocations: 7.969 kB / 0.6879 GB, free: 7.934 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.1618, allocations: 19.44 kB / 0.6879 GB, free: 7.914 MB / 494.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1618, allocations: 0 / 0.6879 GB, free: 7.914 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4628/0.6246, allocations: 1.663 MB / 0.6895 GB, free: 6.363 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.6249, allocations: 208.5 kB / 0.6897 GB, free: 6.109 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.742/3.367, allocations: 0 / 0.6897 GB, free: 6.109 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)