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.001018/0.001018, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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: 200 kB / 16.26 MB, free: 6.617 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.245/1.245, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001963/0.001963, allocations: 290.9 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9608/0.9608, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 95.73 kB / 0.5948 GB, free: 28.31 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1385, allocations: 86.98 MB / 0.6797 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002368/0.1409, allocations: 1.475 MB / 0.6812 GB, free: 15.47 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005895/0.1415, allocations: 429.8 kB / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.1416, allocations: 0 / 0.6816 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.617e-05/0.1416, allocations: 9.438 kB / 0.6816 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.1417, allocations: 7.922 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001201/0.1418, allocations: 8 kB / 0.6816 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.1419, allocations: 56.39 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.361e-05/0.142, allocations: 8.281 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.141e-05/0.1421, allocations: 27.86 kB / 0.6817 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.454e-05/0.1421, allocations: 19.92 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.1421, allocations: 0 / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.909e-06/0.1422, allocations: 4 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.221e-05/0.1422, allocations: 11.94 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.731e-05/0.1422, allocations: 15.92 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.973e-05/0.1423, allocations: 51.75 kB / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1423, allocations: 0 / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1423, allocations: 0 / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1424, allocations: 8 kB / 0.6818 GB, free: 14.82 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.0004908/0.1428, allocations: 385.1 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.1429, allocations: 8.031 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.654e-05/0.1429, allocations: 38.75 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.143, allocations: 8.844 kB / 0.6822 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.1431, allocations: 168.3 kB / 0.6824 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.1431, allocations: 8.312 kB / 0.6824 GB, free: 14.12 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.1431, allocations: 8.375 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001041/0.1432, allocations: 53.81 kB / 0.6824 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.1432, allocations: 3.984 kB / 0.6824 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.1432, allocations: 4 kB / 0.6824 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.1432, allocations: 0 / 0.6824 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.815e-05/0.1433, allocations: 12 kB / 0.6825 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.1436, allocations: 272.8 kB / 0.6827 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.659e-05/0.1437, allocations: 54.48 kB / 0.6828 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.543e-05/0.1438, allocations: 20.97 kB / 0.6828 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.297e-05/0.1438, allocations: 0 / 0.6828 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.1439, allocations: 101.1 kB / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.303e-06/0.144, allocations: 0 / 0.6829 GB, free: 13.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.000247/0.1442, allocations: 143.2 kB / 0.683 GB, free: 13.36 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.1443, allocations: 85.11 kB / 0.6831 GB, free: 13.26 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.844e-05/0.1443, allocations: 109.8 kB / 0.6832 GB, free: 13.14 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.1444, allocations: 29.7 kB / 0.6832 GB, free: 13.11 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.661e-05/0.1444, allocations: 88.12 kB / 0.6833 GB, free: 13.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/0.1444, allocations: 19.81 kB / 0.6833 GB, free: 13 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.1445, allocations: 25.72 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.342e-05/0.1446, allocations: 318.8 kB / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.268e-05/0.1446, allocations: 23.98 kB / 0.6837 GB, free: 12.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.134e-05/0.1447, allocations: 38.45 kB / 0.6837 GB, free: 12.58 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.026e-05/0.1448, allocations: 114 kB / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1448, allocations: 0 / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001451/0.1449, allocations: 123.2 kB / 0.684 GB, free: 12.31 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.1449, allocations: 33.69 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.437e-06/0.145, allocations: 4.062 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.145, allocations: 4 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.736e-05/0.145, allocations: 7.938 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.145, allocations: 0 / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.1451, allocations: 8 kB / 0.684 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.1451, allocations: 7.984 kB / 0.684 GB, free: 12.24 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.152e-05/0.1452, allocations: 151.1 kB / 0.6842 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.677e-05/0.1452, allocations: 7.906 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.1453, allocations: 8.375 kB / 0.6842 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1453, allocations: 8 kB / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1453, allocations: 0 / 0.6842 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1453, allocations: 3.984 kB / 0.6842 GB, free: 12.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003546/0.1456, allocations: 400.1 kB / 0.6846 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1457, allocations: 0 / 0.6846 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.564e-06/0.1457, allocations: 384 / 0.6846 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1457, allocations: 0 / 0.6846 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.1457, allocations: 7.938 kB / 0.6846 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1457, allocations: 0 / 0.6846 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1457, allocations: 7.875 kB / 0.6846 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.1459, allocations: 229.1 kB / 0.6848 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.1459, allocations: 77.17 kB / 0.6849 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.513e-05/0.146, allocations: 15.98 kB / 0.6849 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.994e-05/0.1461, allocations: 4 kB / 0.6849 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.1461, allocations: 11.92 kB / 0.6849 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.1461, allocations: 11.94 kB / 0.6849 GB, free: 11.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.197e-05/0.1462, allocations: 91.81 kB / 0.685 GB, free: 11.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1462, allocations: 0 / 0.685 GB, free: 11.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000233/0.1464, allocations: 23.91 kB / 0.685 GB, free: 11.09 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.0004208/0.1469, allocations: 0.7609 MB / 0.6858 GB, free: 10.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001549/0.147, allocations: 119.4 kB / 0.6859 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.147, allocations: 4.062 kB / 0.6859 GB, free: 10.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.771e-05/0.1471, allocations: 91.64 kB / 0.686 GB, free: 10.06 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002741/0.1474, allocations: 19.5 kB / 0.686 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00112/0.1485, allocations: 1.437 MB / 0.6874 GB, free: 8.512 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001971/0.1487, allocations: 0.6807 MB / 0.6881 GB, free: 7.805 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.677e-05/0.1488, allocations: 7.984 kB / 0.6881 GB, free: 7.797 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.458e-05/0.1488, allocations: 15.44 kB / 0.6881 GB, free: 7.781 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1488, allocations: 0 / 0.6881 GB, free: 7.781 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.1655, allocations: 1.742 MB / 0.6898 GB, free: 6.168 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002846/0.1658, allocations: 211.5 kB / 0.69 GB, free: 5.914 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/1.957, allocations: 0 / 0.69 GB, free: 5.914 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)