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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 105.2 kB / 16.27 MB, free: 6.414 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.001518/0.001519, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.453/1.453, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002421/0.00242, allocations: 294.1 kB / 291.3 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 169.3 MB / 0.4988 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001846/0.001846, allocations: 95.17 kB / 0.5959 GB, free: 15.18 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2081, allocations: 86.98 MB / 0.6808 GB, free: 8.199 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.003232/0.2113, allocations: 1.419 MB / 0.6822 GB, free: 6.766 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000896/0.2123, allocations: 435 kB / 0.6826 GB, free: 6.336 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.702e-05/0.2123, allocations: 0 / 0.6826 GB, free: 6.336 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.666e-05/0.2124, allocations: 3.938 kB / 0.6826 GB, free: 6.332 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.2125, allocations: 15.86 kB / 0.6826 GB, free: 6.316 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001994/0.2127, allocations: 15.98 kB / 0.6827 GB, free: 6.301 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.2129, allocations: 47.84 kB / 0.6827 GB, free: 6.254 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.213, allocations: 8 kB / 0.6827 GB, free: 6.246 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.172e-05/0.2131, allocations: 31.84 kB / 0.6827 GB, free: 6.215 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.226e-05/0.2132, allocations: 15.92 kB / 0.6828 GB, free: 6.199 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.2132, allocations: 4 kB / 0.6828 GB, free: 6.195 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.316e-05/0.2132, allocations: 4 kB / 0.6828 GB, free: 6.191 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.078e-05/0.2133, allocations: 11.94 kB / 0.6828 GB, free: 6.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.428e-05/0.2133, allocations: 15.92 kB / 0.6828 GB, free: 6.164 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.2134, allocations: 48.09 kB / 0.6828 GB, free: 6.117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2135, allocations: 3.938 kB / 0.6828 GB, free: 6.113 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2135, allocations: 0 / 0.6828 GB, free: 6.113 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.2135, allocations: 0 / 0.6828 GB, free: 6.113 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.0006758/0.2142, allocations: 393.1 kB / 0.6832 GB, free: 5.676 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.2142, allocations: 8.031 kB / 0.6832 GB, free: 5.668 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.75e-05/0.2143, allocations: 8.844 kB / 0.6832 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.2144, allocations: 176.3 kB / 0.6834 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.2145, allocations: 384 / 0.6834 GB, free: 5.449 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.767e-05/0.2145, allocations: 4.375 kB / 0.6834 GB, free: 5.445 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000141/0.2146, allocations: 54 kB / 0.6835 GB, free: 5.387 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.2147, allocations: 4 kB / 0.6835 GB, free: 5.383 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.2147, allocations: 0 / 0.6835 GB, free: 5.383 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.2147, allocations: 0 / 0.6835 GB, free: 5.383 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.225e-05/0.2148, allocations: 23.92 kB / 0.6835 GB, free: 5.359 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004644/0.2152, allocations: 276.7 kB / 0.6837 GB, free: 5.039 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.229e-05/0.2153, allocations: 38.56 kB / 0.6838 GB, free: 4.992 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.827e-05/0.2154, allocations: 20.98 kB / 0.6838 GB, free: 4.969 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.2154, allocations: 4 kB / 0.6838 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.2156, allocations: 105.1 kB / 0.6839 GB, free: 4.844 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.2156, allocations: 0 / 0.6839 GB, free: 4.844 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003084/0.2159, allocations: 147.2 kB / 0.6841 GB, free: 4.688 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.216, allocations: 77.11 kB / 0.6841 GB, free: 4.594 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.626e-05/0.2161, allocations: 109.8 kB / 0.6842 GB, free: 4.477 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.2161, allocations: 29.7 kB / 0.6843 GB, free: 4.441 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.497e-05/0.2162, allocations: 88.08 kB / 0.6843 GB, free: 4.352 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.2162, allocations: 23.73 kB / 0.6844 GB, free: 4.328 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.847e-05/0.2163, allocations: 25.72 kB / 0.6844 GB, free: 4.297 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.2164, allocations: 322.8 kB / 0.6847 GB, free: 3.973 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.525e-05/0.2165, allocations: 12 kB / 0.6847 GB, free: 3.961 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.843e-05/0.2165, allocations: 39.33 kB / 0.6847 GB, free: 3.914 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.2166, allocations: 126.3 kB / 0.6849 GB, free: 3.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2167, allocations: 0 / 0.6849 GB, free: 3.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001832/0.2168, allocations: 123.2 kB / 0.685 GB, free: 3.637 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.2169, allocations: 37.64 kB / 0.685 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.2169, allocations: 0 / 0.685 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.2169, allocations: 0 / 0.685 GB, free: 3.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.833e-05/0.217, allocations: 7.984 kB / 0.685 GB, free: 3.586 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.217, allocations: 4 kB / 0.685 GB, free: 3.582 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.584e-05/0.2171, allocations: 8.062 kB / 0.685 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.2171, allocations: 4 kB / 0.685 GB, free: 3.57 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 0.0001256/0.2172, allocations: 154.5 kB / 0.6852 GB, free: 3.406 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.2172, allocations: 7.906 kB / 0.6852 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.994e-05/0.2173, allocations: 8.75 kB / 0.6852 GB, free: 3.391 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2173, allocations: 3.938 kB / 0.6852 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.2173, allocations: 0 / 0.6852 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2173, allocations: 0 / 0.6852 GB, free: 3.387 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.2177, allocations: 408.1 kB / 0.6856 GB, free: 2.926 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.2177, allocations: 8.047 kB / 0.6856 GB, free: 2.918 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.064e-05/0.2177, allocations: 4 kB / 0.6856 GB, free: 2.914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.2177, allocations: 4 kB / 0.6856 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.2178, allocations: 0 / 0.6856 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2178, allocations: 0 / 0.6856 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2178, allocations: 0 / 0.6856 GB, free: 2.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002353/0.218, allocations: 237 kB / 0.6858 GB, free: 2.656 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.422e-05/0.2181, allocations: 81.11 kB / 0.6859 GB, free: 2.559 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.2181, allocations: 4 kB / 0.6859 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.2182, allocations: 11.98 kB / 0.6859 GB, free: 2.543 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.079e-05/0.2183, allocations: 7.922 kB / 0.6859 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.2183, allocations: 4 kB / 0.6859 GB, free: 2.531 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.974e-05/0.2184, allocations: 87.28 kB / 0.686 GB, free: 2.445 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2184, allocations: 0 / 0.686 GB, free: 2.445 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.2186, allocations: 19.98 kB / 0.686 GB, free: 2.426 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.0001054/0.2187, allocations: 105.4 kB / 0.6861 GB, free: 2.316 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002049/0.2189, allocations: 119.3 kB / 0.6863 GB, free: 2.188 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.219, allocations: 0 / 0.6863 GB, free: 2.188 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.912e-05/0.219, allocations: 83.34 kB / 0.6863 GB, free: 2.094 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.2193, allocations: 17.88 kB / 0.6864 GB, free: 2.078 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004049/0.2198, allocations: 191.2 kB / 0.6865 GB, free: 1.859 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.2201, allocations: 0.6857 MB / 0.6872 GB, free: 1.148 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/0.2201, allocations: 23.3 kB / 0.6872 GB, free: 1.125 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2201, allocations: 0 / 0.6872 GB, free: 1.125 MB / 494.1 MB Notification: Performance of Templates: time 0.002545/0.2227, allocations: 0.8952 MB / 0.6881 GB, free: 236 kB / 494.1 MB 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)