Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.conf.json 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/IDEAS 3.0.0-master/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) 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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 173.5 kB / 7.646 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7656/0.7656, allocations: 133.6 MB / 141.6 MB, free: 2.953 MB / 106.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.5 MB / 395.4 MB, free: 10.78 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.0008863/0.0008864, allocations: 95.67 kB / 478.2 MB, free: 1.32 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.908e-05/1.909e-05, allocations: 0 / 0.5535 GB, free: 8.977 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.484/0.4841, allocations: 82.31 MB / 0.6339 GB, free: 40.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.6337, allocations: 111.1 MB / 0.7424 GB, free: 11.53 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.6341, allocations: 79.91 kB / 0.7425 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003611/0.6377, allocations: 1.212 MB / 0.7437 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.353e-06/0.6377, allocations: 4 kB / 0.7437 GB, free: 10.24 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.216e-05/0.6377, allocations: 0 / 0.7437 GB, free: 10.24 MB / 0.5261 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.0005555/0.6383, allocations: 380.1 kB / 0.7441 GB, free: 9.816 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.6384, allocations: 12.03 kB / 0.7441 GB, free: 9.805 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.6384, allocations: 4 kB / 0.7441 GB, free: 9.801 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001829/0.6386, allocations: 178.9 kB / 0.7443 GB, free: 9.586 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.6386, allocations: 8 kB / 0.7443 GB, free: 9.578 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.6387, allocations: 3.984 kB / 0.7443 GB, free: 9.574 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.711e-05/0.6388, allocations: 16 kB / 0.7443 GB, free: 9.559 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.6389, allocations: 45.69 kB / 0.7443 GB, free: 9.508 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.6389, allocations: 0 / 0.7443 GB, free: 9.508 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.6389, allocations: 0 / 0.7443 GB, free: 9.508 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.341e-06/0.6389, allocations: 4 kB / 0.7443 GB, free: 9.504 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004864/0.6394, allocations: 249.4 kB / 0.7446 GB, free: 9.223 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001171/0.6395, allocations: 42.52 kB / 0.7446 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.919e-05/0.6396, allocations: 16.98 kB / 0.7446 GB, free: 9.152 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.6396, allocations: 3.984 kB / 0.7446 GB, free: 9.148 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001962/0.6398, allocations: 93.09 kB / 0.7447 GB, free: 9.039 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.6399, allocations: 0 / 0.7447 GB, free: 9.039 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9): time 0.0002825/0.6401, allocations: 97.58 kB / 0.7448 GB, free: 8.938 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.948e-05/0.6402, allocations: 81.11 kB / 0.7449 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.6403, allocations: 105 kB / 0.745 GB, free: 8.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.6404, allocations: 25.7 kB / 0.745 GB, free: 8.699 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.316e-05/0.6404, allocations: 88.06 kB / 0.7451 GB, free: 8.609 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.6405, allocations: 15.81 kB / 0.7451 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.6405, allocations: 0 / 0.7451 GB, free: 8.594 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.6406, allocations: 322.8 kB / 0.7454 GB, free: 8.27 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.015e-05/0.6407, allocations: 12 kB / 0.7454 GB, free: 8.258 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.734e-05/0.6407, allocations: 38.56 kB / 0.7455 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.957e-05/0.6408, allocations: 15.94 kB / 0.7455 GB, free: 8.195 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.6408, allocations: 0 / 0.7455 GB, free: 8.195 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.00015/0.6409, allocations: 85.58 kB / 0.7456 GB, free: 8.105 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.641, allocations: 33.7 kB / 0.7456 GB, free: 8.066 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.641, allocations: 0 / 0.7456 GB, free: 8.066 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.641, allocations: 4.062 kB / 0.7456 GB, free: 8.062 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.513e-05/0.6411, allocations: 7.938 kB / 0.7456 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.6411, allocations: 4.391 kB / 0.7456 GB, free: 8.051 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.831e-05/0.6412, allocations: 11.92 kB / 0.7456 GB, free: 8.039 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.6412, allocations: 4 kB / 0.7456 GB, free: 8.035 MB / 0.5261 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 0.0001429/0.6414, allocations: 146 kB / 0.7458 GB, free: 7.883 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001526/0.6415, allocations: 101.5 kB / 0.7459 GB, free: 7.777 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.196e-05/0.6415, allocations: 4.094 kB / 0.7459 GB, free: 7.773 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.6416, allocations: 16.56 kB / 0.7459 GB, free: 7.754 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.6416, allocations: 0 / 0.7459 GB, free: 7.754 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.6416, allocations: 0 / 0.7459 GB, free: 7.754 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.6416, allocations: 4 kB / 0.7459 GB, free: 7.75 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003904/0.642, allocations: 339 kB / 0.7462 GB, free: 7.375 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.642, allocations: 0 / 0.7462 GB, free: 7.375 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.684e-06/0.642, allocations: 0 / 0.7462 GB, free: 7.375 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.642, allocations: 0 / 0.7462 GB, free: 7.375 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.6421, allocations: 4 kB / 0.7462 GB, free: 7.371 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.6421, allocations: 80 / 0.7462 GB, free: 7.371 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.666e-06/0.6421, allocations: 7.984 kB / 0.7462 GB, free: 7.363 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002237/0.6423, allocations: 199.5 kB / 0.7464 GB, free: 7.152 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.069e-05/0.6424, allocations: 89.02 kB / 0.7465 GB, free: 7.047 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/0.6424, allocations: 0 / 0.7465 GB, free: 7.047 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.6425, allocations: 15.92 kB / 0.7465 GB, free: 7.031 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.989e-05/0.6426, allocations: 7.984 kB / 0.7465 GB, free: 7.023 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.6426, allocations: 8 kB / 0.7465 GB, free: 7.016 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.317e-05/0.6427, allocations: 87.23 kB / 0.7466 GB, free: 6.93 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6427, allocations: 0 / 0.7466 GB, free: 6.93 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002276/0.6429, allocations: 16 kB / 0.7466 GB, free: 6.914 MB / 0.5261 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 0.0005479/0.6435, allocations: 0.726 MB / 0.7473 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001735/0.6437, allocations: 107.3 kB / 0.7474 GB, free: 6.047 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.6437, allocations: 3.938 kB / 0.7474 GB, free: 6.043 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 8.869e-05/0.6438, allocations: 83.41 kB / 0.7475 GB, free: 5.949 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.644, allocations: 11.98 kB / 0.7475 GB, free: 5.938 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004284/0.6444, allocations: 137.4 kB / 0.7477 GB, free: 5.766 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.6447, allocations: 0.6885 MB / 0.7483 GB, free: 5.051 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 2.704e-05/0.6448, allocations: 4.125 kB / 0.7483 GB, free: 5.047 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.6448, allocations: 15.44 kB / 0.7484 GB, free: 5.035 MB / 0.5261 GB Notification: Performance of SimCode: time 2.374e-06/0.6448, allocations: 0 / 0.7484 GB, free: 5.035 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.6647, allocations: 1.288 MB / 0.7496 GB, free: 3.762 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.6649, allocations: 123 kB / 0.7497 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.683/2.348, allocations: 0 / 0.7497 GB, free: 3.57 MB / 0.5261 GB (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Discrete_Examples_BooleanDelay.fmu > IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)