Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7241/0.7241, allocations: 127.3 MB / 139.8 MB, free: 15.45 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001173/0.001173, allocations: 188.7 kB / 169.7 MB, free: 1.738 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.785/1.785, allocations: 205.1 MB / 404.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009801/0.0009798, allocations: 91.33 kB / 481.8 MB, free: 4.316 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.351e-05/3.373e-05, allocations: 4 kB / 0.5533 GB, free: 54.76 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1662/0.1662, allocations: 76.76 MB / 0.6282 GB, free: 9.945 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.549/0.7153, allocations: 103.1 MB / 0.729 GB, free: 10.27 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.7157, allocations: 76.7 kB / 0.729 GB, free: 10.22 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003443/0.7191, allocations: 1.183 MB / 0.7302 GB, free: 9.195 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.7192, allocations: 4 kB / 0.7302 GB, free: 9.191 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.7192, allocations: 0 / 0.7302 GB, free: 9.191 MB / 490.7 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.0004918/0.7197, allocations: 386.9 kB / 0.7306 GB, free: 8.77 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.7197, allocations: 12.03 kB / 0.7306 GB, free: 8.758 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.523e-05/0.7198, allocations: 34.25 kB / 0.7306 GB, free: 8.719 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.7198, allocations: 11.86 kB / 0.7306 GB, free: 8.707 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.72, allocations: 167.1 kB / 0.7308 GB, free: 8.504 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.72, allocations: 4 kB / 0.7308 GB, free: 8.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.72, allocations: 4 kB / 0.7308 GB, free: 8.496 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/0.7202, allocations: 52.38 kB / 0.7308 GB, free: 8.445 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.7202, allocations: 0.6562 kB / 0.7308 GB, free: 8.445 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.7202, allocations: 0 / 0.7308 GB, free: 8.445 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.7202, allocations: 4 kB / 0.7308 GB, free: 8.441 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.568e-05/0.7203, allocations: 23.2 kB / 0.7309 GB, free: 8.426 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004368/0.7207, allocations: 267.2 kB / 0.7311 GB, free: 8.129 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.815e-05/0.7208, allocations: 40.94 kB / 0.7311 GB, free: 8.086 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.808e-05/0.7209, allocations: 21.11 kB / 0.7312 GB, free: 8.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.7209, allocations: 3.938 kB / 0.7312 GB, free: 8.066 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000175/0.7211, allocations: 111.9 kB / 0.7313 GB, free: 7.949 MB / 490.7 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.7211, allocations: 0 / 0.7313 GB, free: 7.949 MB / 490.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002668/0.7214, allocations: 119 kB / 0.7314 GB, free: 7.832 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.676e-05/0.7215, allocations: 88.66 kB / 0.7315 GB, free: 7.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.7215, allocations: 96.44 kB / 0.7316 GB, free: 7.633 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.7216, allocations: 25.7 kB / 0.7316 GB, free: 7.602 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.255e-05/0.7216, allocations: 91.55 kB / 0.7317 GB, free: 7.512 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.7217, allocations: 23.8 kB / 0.7317 GB, free: 7.492 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.7217, allocations: 4 kB / 0.7317 GB, free: 7.488 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.7218, allocations: 313.8 kB / 0.732 GB, free: 7.176 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.173e-05/0.7218, allocations: 19.38 kB / 0.732 GB, free: 7.164 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.534e-05/0.7219, allocations: 37.12 kB / 0.7321 GB, free: 7.125 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.744e-05/0.7219, allocations: 36.02 kB / 0.7321 GB, free: 7.086 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.722, allocations: 4 kB / 0.7321 GB, free: 7.082 MB / 490.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001597/0.7221, allocations: 124.5 kB / 0.7322 GB, free: 6.965 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.814e-05/0.7222, allocations: 38.42 kB / 0.7323 GB, free: 6.922 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.7222, allocations: 0 / 0.7323 GB, free: 6.922 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.7222, allocations: 3.953 kB / 0.7323 GB, free: 6.918 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.749e-05/0.7223, allocations: 7.938 kB / 0.7323 GB, free: 6.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.7223, allocations: 0 / 0.7323 GB, free: 6.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.238e-05/0.7223, allocations: 19.08 kB / 0.7323 GB, free: 6.895 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.889e-06/0.7224, allocations: 8.062 kB / 0.7323 GB, free: 6.887 MB / 490.7 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 ($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 9.859e-05/0.7225, allocations: 142 kB / 0.7324 GB, free: 6.738 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.7225, allocations: 4 kB / 0.7324 GB, free: 6.734 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.15e-05/0.7225, allocations: 15.92 kB / 0.7324 GB, free: 6.723 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.7225, allocations: 0 / 0.7324 GB, free: 6.723 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.7226, allocations: 3.953 kB / 0.7324 GB, free: 6.719 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7226, allocations: 0 / 0.7324 GB, free: 6.719 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004025/0.723, allocations: 396.9 kB / 0.7328 GB, free: 6.297 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.723, allocations: 7.938 kB / 0.7328 GB, free: 6.289 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.467e-06/0.723, allocations: 0 / 0.7328 GB, free: 6.289 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.723, allocations: 7.938 kB / 0.7328 GB, free: 6.281 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.234e-05/0.723, allocations: 3.953 kB / 0.7328 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.723, allocations: 0 / 0.7328 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.723, allocations: 0 / 0.7328 GB, free: 6.277 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.7233, allocations: 230 kB / 0.7331 GB, free: 6.051 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.7233, allocations: 85 kB / 0.7331 GB, free: 5.949 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.7234, allocations: 0 / 0.7331 GB, free: 5.949 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.7235, allocations: 27 kB / 0.7332 GB, free: 5.926 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.993e-05/0.7235, allocations: 7.938 kB / 0.7332 GB, free: 5.918 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.89e-05/0.7236, allocations: 4 kB / 0.7332 GB, free: 5.914 MB / 490.7 MB Notification: Performance of sorting global known variables: time 5.624e-05/0.7236, allocations: 95.2 kB / 0.7333 GB, free: 5.824 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7236, allocations: 0 / 0.7333 GB, free: 5.824 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002067/0.7238, allocations: 14.94 kB / 0.7333 GB, free: 5.812 MB / 490.7 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) * 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 0.0004961/0.7243, allocations: 0.7662 MB / 0.734 GB, free: 5.035 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001716/0.7245, allocations: 116 kB / 0.7341 GB, free: 4.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7245, allocations: 0 / 0.7341 GB, free: 4.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.599e-05/0.7246, allocations: 85.34 kB / 0.7342 GB, free: 4.844 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.7248, allocations: 19.31 kB / 0.7342 GB, free: 4.828 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004095/0.7253, allocations: 138 kB / 0.7344 GB, free: 4.668 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002646/0.7255, allocations: 0.6848 MB / 0.735 GB, free: 3.957 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 3.059e-05/0.7256, allocations: 7.984 kB / 0.7351 GB, free: 3.949 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.26e-05/0.7256, allocations: 18.81 kB / 0.7351 GB, free: 3.938 MB / 490.7 MB Notification: Performance of SimCode: time 8.61e-07/0.7256, allocations: 3.938 kB / 0.7351 GB, free: 3.934 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01477/0.7404, allocations: 1.609 MB / 0.7366 GB, free: 2.445 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003204/0.7408, allocations: 160 kB / 0.7368 GB, free: 2.223 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/2.394, allocations: 3.938 kB / 0.7368 GB, free: 2.219 MB / 490.7 MB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Discrete_Examples_BooleanDelay.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)