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.001262/0.001262, allocations: 104.5 kB / 16.39 MB, free: 6.383 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.001283/0.001283, allocations: 192.6 kB / 17.33 MB, free: 5.844 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.46/1.46, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00272/0.00272, allocations: 294.1 kB / 291.5 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.061/1.061, allocations: 169.3 MB / 0.499 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002861/0.002861, allocations: 100.3 kB / 0.6821 GB, free: 7.031 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5177/0.5205, allocations: 86.97 MB / 0.767 GB, free: 3.969 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.003153/0.5237, allocations: 1.422 MB / 0.7684 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009428/0.5246, allocations: 436.7 kB / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.563e-05/0.5247, allocations: 0 / 0.7688 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.948e-05/0.5247, allocations: 3.938 kB / 0.7688 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000116/0.5248, allocations: 15.86 kB / 0.7688 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.525, allocations: 19.92 kB / 0.7688 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.5252, allocations: 59.78 kB / 0.7689 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.5253, allocations: 3.984 kB / 0.7689 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.52e-05/0.5254, allocations: 19.88 kB / 0.7689 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.289e-05/0.5255, allocations: 19.92 kB / 0.7689 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.5255, allocations: 4 kB / 0.7689 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.442e-05/0.5255, allocations: 8 kB / 0.769 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.116e-05/0.5255, allocations: 7.984 kB / 0.769 GB, free: 1.945 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.164e-05/0.5256, allocations: 27.86 kB / 0.769 GB, free: 1.918 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.5257, allocations: 39.69 kB / 0.769 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.5258, allocations: 3.984 kB / 0.769 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5258, allocations: 0 / 0.769 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.062e-06/0.5258, allocations: 0 / 0.769 GB, free: 1.879 MB / 0.5294 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.0008009/0.5266, allocations: 398.9 kB / 0.7694 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.5266, allocations: 15.97 kB / 0.7694 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.5267, allocations: 4.938 kB / 0.7694 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.5268, allocations: 168.3 kB / 0.7696 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.5269, allocations: 8.375 kB / 0.7696 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.5269, allocations: 4.312 kB / 0.7696 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001496/0.527, allocations: 57.98 kB / 0.7697 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.527, allocations: 0 / 0.7697 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.5271, allocations: 4 kB / 0.7697 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-06/0.5271, allocations: 0 / 0.7697 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.66e-05/0.5271, allocations: 23.98 kB / 0.7697 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005054/0.5276, allocations: 272.8 kB / 0.7699 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.5277, allocations: 38.56 kB / 0.77 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.596e-05/0.5278, allocations: 16.98 kB / 0.77 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.521e-05/0.5278, allocations: 0 / 0.77 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.528, allocations: 113 kB / 0.7701 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=9): time 1.723e-06/0.528, allocations: 0 / 0.7701 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.0003436/0.5284, allocations: 131.4 kB / 0.7702 GB, free: 476 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.109e-05/0.5284, allocations: 85.39 kB / 0.7703 GB, free: 372 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.5286, allocations: 113.8 kB / 0.7704 GB, free: 248 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.5286, allocations: 33.7 kB / 0.7705 GB, free: 208 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.377e-05/0.5286, allocations: 88.06 kB / 0.7705 GB, free: 116 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.5287, allocations: 15.91 kB / 0.7705 GB, free: 100 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.913e-05/0.5287, allocations: 29.7 kB / 0.7706 GB, free: 64 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.5289, allocations: 322.8 kB / 0.7709 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.826e-05/0.5289, allocations: 15.98 kB / 0.7709 GB, free: 15.72 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.308e-05/0.529, allocations: 38.56 kB / 0.7709 GB, free: 15.68 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.5291, allocations: 105.9 kB / 0.771 GB, free: 15.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.5291, allocations: 4 kB / 0.771 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001778/0.5293, allocations: 131.7 kB / 0.7712 GB, free: 15.41 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.598e-05/0.5294, allocations: 33.7 kB / 0.7712 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.5294, allocations: 3.984 kB / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.5294, allocations: 0 / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.065e-05/0.5294, allocations: 4 kB / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.5294, allocations: 0 / 0.7712 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.635e-05/0.5295, allocations: 7.984 kB / 0.7712 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.5295, allocations: 4 kB / 0.7712 GB, free: 15.35 MB / 0.545 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 (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.00015/0.5297, allocations: 161.8 kB / 0.7714 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.5297, allocations: 19.88 kB / 0.7714 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.5297, allocations: 4.375 kB / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.5297, allocations: 4 kB / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.5297, allocations: 0 / 0.7714 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5297, allocations: 3.984 kB / 0.7714 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00047/0.5302, allocations: 400.1 kB / 0.7718 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.5302, allocations: 0 / 0.7718 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.324e-06/0.5302, allocations: 0 / 0.7718 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.5302, allocations: 4 kB / 0.7718 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.5302, allocations: 11.98 kB / 0.7718 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.5302, allocations: 4.062 kB / 0.7718 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.5302, allocations: 0 / 0.7718 GB, free: 14.67 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002581/0.5305, allocations: 237.1 kB / 0.772 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.575e-05/0.5306, allocations: 85.06 kB / 0.7721 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.5306, allocations: 0 / 0.7721 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.5307, allocations: 15.98 kB / 0.7721 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.5307, allocations: 7.938 kB / 0.7721 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.5307, allocations: 7.984 kB / 0.7721 GB, free: 14.29 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.233e-05/0.5308, allocations: 91.27 kB / 0.7722 GB, free: 14.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.5308, allocations: 0 / 0.7722 GB, free: 14.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002297/0.531, allocations: 16 kB / 0.7722 GB, free: 14.18 MB / 0.545 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 (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.0001193/0.5312, allocations: 103.2 kB / 0.7723 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001909/0.5313, allocations: 107.4 kB / 0.7724 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.5314, allocations: 0 / 0.7724 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.991e-05/0.5315, allocations: 83.33 kB / 0.7725 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.5318, allocations: 18.64 kB / 0.7725 GB, free: 13.84 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.5321, allocations: 145.5 kB / 0.7727 GB, free: 13.68 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.5325, allocations: 0.6855 MB / 0.7734 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.426e-05/0.5325, allocations: 64 / 0.7734 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.268e-05/0.5325, allocations: 15.44 kB / 0.7734 GB, free: 12.95 MB / 0.545 GB Notification: Performance of SimCode: time 3.21e-07/0.5325, allocations: 0 / 0.7734 GB, free: 12.95 MB / 0.545 GB Notification: Performance of Templates: time 0.003705/0.5362, allocations: 0.8648 MB / 0.7742 GB, free: 12.09 MB / 0.545 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)