Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-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(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.001488/0.001488, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.002246/0.002246, allocations: 172.7 kB / 15.95 MB, free: 208 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.721/1.721, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.232/1.232, allocations: 143.4 MB / 434.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003659, allocations: 8 kB / 0.5161 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2076, allocations: 83.4 MB / 0.5975 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay): time 0.001916/0.2096, allocations: 1.143 MB / 0.5986 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007547/0.2104, allocations: 399.4 kB / 0.599 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.772e-05/0.2104, allocations: 0 / 0.599 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.061e-05/0.2105, allocations: 3.938 kB / 0.599 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.957e-05/0.2106, allocations: 7.922 kB / 0.599 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000179/0.2107, allocations: 16 kB / 0.599 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.836e-05/0.2109, allocations: 47.84 kB / 0.5991 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.615e-05/0.211, allocations: 4 kB / 0.5991 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.377e-05/0.211, allocations: 27.84 kB / 0.5991 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.742e-05/0.2111, allocations: 15.92 kB / 0.5991 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.2111, allocations: 0 / 0.5991 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/0.2112, allocations: 4 kB / 0.5991 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.217e-05/0.2112, allocations: 4 kB / 0.5991 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.378e-05/0.2112, allocations: 33.69 kB / 0.5992 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.12e-05/0.2113, allocations: 28.17 kB / 0.5992 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2113, allocations: 0 / 0.5992 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2113, allocations: 0 / 0.5992 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.2114, allocations: 3.938 kB / 0.5992 GB, free: 6 MB / 0.4981 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.0006112/0.212, allocations: 392.9 kB / 0.5996 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.212, allocations: 12.03 kB / 0.5996 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.901e-05/0.2121, allocations: 34.56 kB / 0.5996 GB, free: 5.508 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.528e-05/0.2121, allocations: 7.906 kB / 0.5996 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.2123, allocations: 178.9 kB / 0.5998 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.2123, allocations: 4 kB / 0.5998 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.355e-05/0.2123, allocations: 4 kB / 0.5998 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.2125, allocations: 53.67 kB / 0.5999 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.2125, allocations: 0 / 0.5999 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.2125, allocations: 4 kB / 0.5999 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.2125, allocations: 0 / 0.5999 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.836e-05/0.2126, allocations: 19.92 kB / 0.5999 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004354/0.213, allocations: 276.8 kB / 0.6002 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.606e-05/0.2131, allocations: 42.56 kB / 0.6002 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.504e-05/0.2132, allocations: 16.98 kB / 0.6002 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.2132, allocations: 7.938 kB / 0.6002 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.2134, allocations: 105 kB / 0.6003 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 2.755e-06/0.2134, allocations: 3.984 kB / 0.6003 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002891/0.2137, allocations: 139.4 kB / 0.6005 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.2138, allocations: 89.06 kB / 0.6005 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.2139, allocations: 113.8 kB / 0.6006 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.2139, allocations: 25.7 kB / 0.6007 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.214, allocations: 88.14 kB / 0.6008 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.214, allocations: 19.8 kB / 0.6008 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-06/0.214, allocations: 0 / 0.6008 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2142, allocations: 310.8 kB / 0.6011 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.742e-05/0.2142, allocations: 19.98 kB / 0.6011 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.942e-05/0.2143, allocations: 34.58 kB / 0.6011 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.595e-05/0.2143, allocations: 50.06 kB / 0.6012 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2143, allocations: 0 / 0.6012 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001826/0.2145, allocations: 127.2 kB / 0.6013 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.634e-05/0.2146, allocations: 35.42 kB / 0.6013 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2146, allocations: 3.938 kB / 0.6013 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2146, allocations: 7.938 kB / 0.6013 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.538e-05/0.2147, allocations: 8.047 kB / 0.6013 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.2147, allocations: 7.953 kB / 0.6014 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.624e-05/0.2148, allocations: 7.938 kB / 0.6014 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.2148, allocations: 8 kB / 0.6014 GB, free: 3.508 MB / 0.4981 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 0.0001361/0.2149, allocations: 147.5 kB / 0.6015 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.2149, allocations: 7.906 kB / 0.6015 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.825e-05/0.215, allocations: 4.375 kB / 0.6015 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.215, allocations: 8 kB / 0.6015 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.215, allocations: 0 / 0.6015 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.215, allocations: 3.953 kB / 0.6015 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000452/0.2155, allocations: 396.2 kB / 0.6019 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.2155, allocations: 0 / 0.6019 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.148e-05/0.2155, allocations: 7.922 kB / 0.6019 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2155, allocations: 0 / 0.6019 GB, free: 2.863 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.2155, allocations: 7.938 kB / 0.6019 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.788e-06/0.2155, allocations: 3.953 kB / 0.6019 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2155, allocations: 0 / 0.6019 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.2158, allocations: 233.1 kB / 0.6021 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.085e-05/0.2159, allocations: 77.11 kB / 0.6022 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.54e-05/0.2159, allocations: 8 kB / 0.6022 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.216, allocations: 11.98 kB / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.25e-05/0.2161, allocations: 15.88 kB / 0.6023 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.2161, allocations: 0 / 0.6023 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.935e-05/0.2162, allocations: 95.27 kB / 0.6023 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2162, allocations: 0 / 0.6023 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002477/0.2164, allocations: 16 kB / 0.6024 GB, free: 2.363 MB / 0.4981 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.0006764/0.2171, allocations: 0.7687 MB / 0.6031 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002113/0.2173, allocations: 115.4 kB / 0.6032 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2174, allocations: 0 / 0.6032 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.426e-05/0.2175, allocations: 92.19 kB / 0.6033 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.2178, allocations: 15.95 kB / 0.6033 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008632/0.2186, allocations: 0.4911 MB / 0.6038 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.2189, allocations: 0.6848 MB / 0.6045 GB, free: 60 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.407e-05/0.219, allocations: 4 kB / 0.6045 GB, free: 56 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.336e-05/0.219, allocations: 19.42 kB / 0.6045 GB, free: 36 kB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.2191, allocations: 0 / 0.6045 GB, free: 36 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3981/0.6172, allocations: 1.606 MB / 0.6061 GB, free: 40.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.6174, allocations: 187.8 kB / 0.6062 GB, free: 39.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.619, allocations: 0 / 0.6062 GB, free: 39.94 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) Environment - environmentSimulation: