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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8225/0.8225, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009949/0.000995, allocations: 178.5 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 221.3 MB / 441.4 MB, free: 4.602 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008203/0.0008201, allocations: 94.33 kB / 0.5124 GB, free: 24.2 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001737/0.001737, allocations: 276.1 kB / 0.5939 GB, free: 7.957 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.721e-05/3.723e-05, allocations: 4 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3797, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1097/0.4894, allocations: 109.1 MB / 0.8708 GB, free: 15.44 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.4896, allocations: 79.81 kB / 0.8709 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003239/0.4929, allocations: 1.221 MB / 0.8721 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4929, allocations: 0 / 0.8721 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 5.199e-06/0.4929, allocations: 4 kB / 0.8721 GB, free: 14.14 MB / 0.5417 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.000398/0.4933, allocations: 376.2 kB / 0.8725 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.4934, allocations: 8.031 kB / 0.8725 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.4934, allocations: 7.906 kB / 0.8725 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.4935, allocations: 175 kB / 0.8726 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.4936, allocations: 3.953 kB / 0.8726 GB, free: 13.5 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.4936, allocations: 8 kB / 0.8727 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.768e-05/0.4937, allocations: 49.69 kB / 0.8727 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.4937, allocations: 0 / 0.8727 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-06/0.4937, allocations: 0 / 0.8727 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.4937, allocations: 0 / 0.8727 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.034e-05/0.4938, allocations: 19.98 kB / 0.8727 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000358/0.4941, allocations: 268.9 kB / 0.873 GB, free: 13.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 7.595e-05/0.4942, allocations: 50.45 kB / 0.873 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.202e-05/0.4943, allocations: 16.98 kB / 0.873 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.4943, allocations: 0 / 0.873 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001473/0.4945, allocations: 101 kB / 0.8731 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.4945, allocations: 0 / 0.8731 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of matching and sorting (n=9): time 0.0002089/0.4947, allocations: 123.3 kB / 0.8733 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.4947, allocations: 85.17 kB / 0.8733 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.926e-05/0.4948, allocations: 112.6 kB / 0.8734 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.4948, allocations: 29.7 kB / 0.8735 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.546e-05/0.4949, allocations: 84.14 kB / 0.8736 GB, free: 12.44 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.4949, allocations: 15.81 kB / 0.8736 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-06/0.4949, allocations: 3.938 kB / 0.8736 GB, free: 12.42 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.471e-05/0.495, allocations: 322.8 kB / 0.8739 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.199e-05/0.4951, allocations: 16 kB / 0.8739 GB, free: 12.08 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.459e-05/0.4951, allocations: 42.52 kB / 0.8739 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.454e-05/0.4952, allocations: 41.69 kB / 0.874 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.4952, allocations: 4 kB / 0.874 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001504/0.4953, allocations: 123.2 kB / 0.8741 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.4954, allocations: 33.7 kB / 0.8741 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.4954, allocations: 4.062 kB / 0.8741 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.4954, allocations: 0 / 0.8741 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.132e-05/0.4954, allocations: 8.047 kB / 0.8741 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.4955, allocations: 4 kB / 0.8741 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.314e-05/0.4955, allocations: 15.94 kB / 0.8742 GB, free: 11.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.4955, allocations: 4 kB / 0.8742 GB, free: 11.77 MB / 0.5417 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 () * 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 8.796e-05/0.4956, allocations: 146.6 kB / 0.8743 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.4956, allocations: 4 kB / 0.8743 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.243e-05/0.4957, allocations: 8.625 kB / 0.8743 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.4957, allocations: 0 / 0.8743 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4957, allocations: 4 kB / 0.8743 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.4957, allocations: 0 / 0.8743 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003594/0.4961, allocations: 400.2 kB / 0.8747 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4961, allocations: 0 / 0.8747 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.097e-05/0.4961, allocations: 7.984 kB / 0.8747 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.4961, allocations: 0 / 0.8747 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-06/0.4961, allocations: 0 / 0.8747 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4961, allocations: 0 / 0.8747 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.4961, allocations: 0 / 0.8747 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.4963, allocations: 245 kB / 0.8749 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.666e-05/0.4964, allocations: 85 kB / 0.875 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.4964, allocations: 4 kB / 0.875 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-05/0.4965, allocations: 11.98 kB / 0.875 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.513e-05/0.4966, allocations: 7.984 kB / 0.875 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.4966, allocations: 4 kB / 0.8751 GB, free: 10.75 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.327e-05/0.4966, allocations: 91.22 kB / 0.8751 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4967, allocations: 4 kB / 0.8751 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002005/0.4969, allocations: 12 kB / 0.8752 GB, free: 10.64 MB / 0.5417 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) * 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 9.884e-05/0.497, allocations: 104.6 kB / 0.8753 GB, free: 10.53 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001462/0.4971, allocations: 111.3 kB / 0.8754 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4971, allocations: 4 kB / 0.8754 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 8.233e-05/0.4972, allocations: 87.34 kB / 0.8754 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.4974, allocations: 20.06 kB / 0.8755 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002241/0.4976, allocations: 97.11 kB / 0.8756 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002329/0.4979, allocations: 0.6895 MB / 0.8762 GB, free: 9.457 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.759e-05/0.4979, allocations: 7.766 kB / 0.8762 GB, free: 9.449 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/0.4979, allocations: 11.44 kB / 0.8762 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of SimCode: time 3.11e-07/0.4979, allocations: 0 / 0.8762 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of Templates: time 0.002421/0.5004, allocations: 0.7452 MB / 0.877 GB, free: 8.707 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)