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.00117/0.00117, allocations: 108 kB / 15.61 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 198.1 kB / 16.53 MB, free: 6.672 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.295/1.295, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002126/0.002126, allocations: 282.8 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9111/0.9111, allocations: 169.3 MB / 0.4982 GB, free: 13.92 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.00191, allocations: 97.11 kB / 0.5953 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1372, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002486/0.1398, allocations: 1.417 MB / 0.6817 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006751/0.1405, allocations: 427 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.886e-05/0.1405, allocations: 0 / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.567e-05/0.1406, allocations: 11.86 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.833e-05/0.1406, allocations: 4.656 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001426/0.1408, allocations: 23.91 kB / 0.6821 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.1409, allocations: 60.41 kB / 0.6822 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.524e-05/0.141, allocations: 6.188 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.198e-05/0.141, allocations: 19.88 kB / 0.6822 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.824e-05/0.1411, allocations: 19.91 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.851e-05/0.1411, allocations: 4 kB / 0.6822 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.199e-05/0.1412, allocations: 8 kB / 0.6822 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.163e-05/0.1412, allocations: 7.938 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.547e-05/0.1412, allocations: 27.91 kB / 0.6822 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.863e-05/0.1413, allocations: 43.77 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1413, allocations: 0 / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1414, allocations: 0 / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.535e-06/0.1414, allocations: 0 / 0.6823 GB, free: 14.52 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.0005141/0.1419, allocations: 395 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1419, allocations: 8.031 kB / 0.6827 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.966e-05/0.142, allocations: 30.75 kB / 0.6827 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.757e-05/0.142, allocations: 8.844 kB / 0.6827 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.1421, allocations: 180.2 kB / 0.6829 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.1421, allocations: 4.375 kB / 0.6829 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.1421, allocations: 4.375 kB / 0.6829 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.1423, allocations: 53.8 kB / 0.6829 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1423, allocations: 0 / 0.6829 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.1423, allocations: 4 kB / 0.6829 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1423, allocations: 4 kB / 0.683 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.319e-05/0.1424, allocations: 23.98 kB / 0.683 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003387/0.1427, allocations: 264.8 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.945e-05/0.1428, allocations: 46.5 kB / 0.6833 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.634e-05/0.1428, allocations: 20.98 kB / 0.6833 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.1429, allocations: 3.984 kB / 0.6833 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.143, allocations: 97.09 kB / 0.6834 GB, free: 13.21 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.252e-06/0.143, allocations: 0 / 0.6834 GB, free: 13.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002518/0.1433, allocations: 143.5 kB / 0.6835 GB, free: 13.06 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.1433, allocations: 89.11 kB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.063e-05/0.1434, allocations: 109.8 kB / 0.6837 GB, free: 12.84 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1434, allocations: 29.7 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.096e-05/0.1435, allocations: 88.12 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.1435, allocations: 19.75 kB / 0.6838 GB, free: 12.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.818e-05/0.1436, allocations: 25.72 kB / 0.6839 GB, free: 12.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.1437, allocations: 322.8 kB / 0.6842 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.334e-05/0.1437, allocations: 15.94 kB / 0.6842 GB, free: 12.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.409e-05/0.1437, allocations: 38.56 kB / 0.6842 GB, free: 12.28 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.777e-05/0.1438, allocations: 114 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1439, allocations: 3.938 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001513/0.144, allocations: 123.2 kB / 0.6845 GB, free: 12.01 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.144, allocations: 37.64 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1441, allocations: 3.984 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1441, allocations: 4 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.635e-05/0.1441, allocations: 0 / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1441, allocations: 4 kB / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.266e-05/0.1442, allocations: 4 kB / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1442, allocations: 8.062 kB / 0.6845 GB, free: 11.94 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.656e-05/0.1443, allocations: 157.4 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.559e-05/0.1443, allocations: 3.906 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.327e-05/0.1444, allocations: 12.38 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1444, allocations: 0 / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1444, allocations: 0 / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.746e-06/0.1444, allocations: 0 / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.1448, allocations: 400.1 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1448, allocations: 4 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.03e-05/0.1448, allocations: 3.938 kB / 0.6851 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1448, allocations: 4 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1448, allocations: 4 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1448, allocations: 0 / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1448, allocations: 3.938 kB / 0.6851 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.145, allocations: 233.6 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.37e-05/0.1451, allocations: 81.11 kB / 0.6854 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.1451, allocations: 7.984 kB / 0.6854 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.1452, allocations: 20 kB / 0.6854 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.1452, allocations: 11.91 kB / 0.6854 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.1453, allocations: 4 kB / 0.6854 GB, free: 10.89 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.538e-05/0.1453, allocations: 95.33 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1453, allocations: 0 / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002407/0.1456, allocations: 15.91 kB / 0.6855 GB, free: 10.79 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.0004202/0.146, allocations: 0.7648 MB / 0.6863 GB, free: 9.988 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000163/0.1462, allocations: 123.3 kB / 0.6864 GB, free: 9.855 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1462, allocations: 0 / 0.6864 GB, free: 9.855 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.926e-05/0.1463, allocations: 91.39 kB / 0.6865 GB, free: 9.754 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.1466, allocations: 11.94 kB / 0.6865 GB, free: 9.742 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.1477, allocations: 1.423 MB / 0.6879 GB, free: 8.227 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.1479, allocations: 0.6853 MB / 0.6886 GB, free: 7.516 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.872e-05/0.148, allocations: 8.281 kB / 0.6886 GB, free: 7.508 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.148, allocations: 23.42 kB / 0.6886 GB, free: 7.484 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.148, allocations: 0 / 0.6886 GB, free: 7.484 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.173, allocations: 1.859 MB / 0.6904 GB, free: 5.711 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/7.883, allocations: 12.61 kB / 0.6904 GB, free: 5.703 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)