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.00778/0.007781, allocations: 171.1 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7695/0.7695, allocations: 135.2 MB / 151 MB, free: 13.84 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.629/1.629, allocations: 223.2 MB / 406.8 MB, free: 3.242 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.001061/0.001061, allocations: 99.36 kB / 489.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004465/0.0004465, allocations: 8 kB / 0.5691 GB, free: 14.11 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5143/0.5148, allocations: 82.31 MB / 0.6495 GB, free: 36.07 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2329/0.7478, allocations: 111.9 MB / 0.7588 GB, free: 4.051 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003849/0.7483, allocations: 79.94 kB / 0.7588 GB, free: 3.973 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.005499/0.7538, allocations: 1.236 MB / 0.7601 GB, free: 2.734 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.317e-06/0.7539, allocations: 0 / 0.7601 GB, free: 2.734 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.267e-05/0.7539, allocations: 0 / 0.7601 GB, free: 2.734 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.0008381/0.7548, allocations: 389 kB / 0.7604 GB, free: 2.301 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.767e-05/0.7549, allocations: 8.031 kB / 0.7604 GB, free: 2.293 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.291e-05/0.7549, allocations: 34.56 kB / 0.7605 GB, free: 2.25 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.197e-05/0.755, allocations: 7.906 kB / 0.7605 GB, free: 2.242 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.7553, allocations: 182.9 kB / 0.7606 GB, free: 2.023 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.7553, allocations: 8 kB / 0.7607 GB, free: 2.016 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.7553, allocations: 0 / 0.7607 GB, free: 2.016 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.7555, allocations: 49.69 kB / 0.7607 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.7556, allocations: 0 / 0.7607 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.7556, allocations: 8 kB / 0.7607 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.7556, allocations: 0 / 0.7607 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.222e-05/0.7557, allocations: 15.98 kB / 0.7607 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000661/0.7564, allocations: 276.7 kB / 0.761 GB, free: 1.617 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001288/0.7565, allocations: 46.5 kB / 0.761 GB, free: 1.562 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.7566, allocations: 0 / 0.761 GB, free: 1.562 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.7568, allocations: 101.1 kB / 0.7611 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=9): time 2.524e-06/0.7569, allocations: 0 / 0.7611 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9): time 0.0005094/0.7574, allocations: 224.5 kB / 0.7613 GB, free: 1.195 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.878e-05/0.7575, allocations: 77.11 kB / 0.7614 GB, free: 1.102 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001365/0.7576, allocations: 112.9 kB / 0.7615 GB, free: 0.9844 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.7577, allocations: 25.7 kB / 0.7615 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.605e-05/0.7577, allocations: 88.09 kB / 0.7616 GB, free: 0.8633 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.7578, allocations: 19.81 kB / 0.7616 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.7578, allocations: 0 / 0.7616 GB, free: 0.8438 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001641/0.758, allocations: 326.8 kB / 0.762 GB, free: 0.5156 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.438e-05/0.758, allocations: 12 kB / 0.762 GB, free: 0.5039 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.435e-05/0.7581, allocations: 34.56 kB / 0.762 GB, free: 472 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.674e-05/0.7582, allocations: 41.7 kB / 0.762 GB, free: 424 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.7582, allocations: 0 / 0.762 GB, free: 424 kB / 0.5261 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002641/0.7585, allocations: 139.6 kB / 0.7622 GB, free: 272 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.593e-05/0.7586, allocations: 29.7 kB / 0.7622 GB, free: 236 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.7586, allocations: 4 kB / 0.7622 GB, free: 232 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.7586, allocations: 0 / 0.7622 GB, free: 232 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.954e-05/0.7587, allocations: 4 kB / 0.7622 GB, free: 228 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.7587, allocations: 3.984 kB / 0.7622 GB, free: 224 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.7588, allocations: 15.92 kB / 0.7622 GB, free: 208 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.7589, allocations: 7.953 kB / 0.7622 GB, free: 200 kB / 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001714/0.7591, allocations: 149.4 kB / 0.7624 GB, free: 36 kB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.7591, allocations: 7.984 kB / 0.7624 GB, free: 28 kB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.099e-05/0.7592, allocations: 8.375 kB / 0.7624 GB, free: 20 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.7592, allocations: 384 / 0.7624 GB, free: 20 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.7592, allocations: 0 / 0.7624 GB, free: 20 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.7592, allocations: 0 / 0.7624 GB, free: 20 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006412/0.7598, allocations: 400.1 kB / 0.7628 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.7599, allocations: 0 / 0.7628 GB, free: 15.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.673e-05/0.7599, allocations: 8 kB / 0.7628 GB, free: 15.56 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.7599, allocations: 3.938 kB / 0.7628 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.7599, allocations: 7.984 kB / 0.7628 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.76, allocations: 3.984 kB / 0.7628 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.76, allocations: 0 / 0.7628 GB, free: 15.54 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.7604, allocations: 237 kB / 0.763 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.707e-05/0.7604, allocations: 81.02 kB / 0.7631 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.7605, allocations: 4 kB / 0.7631 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.7606, allocations: 19.98 kB / 0.7631 GB, free: 15.17 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.204e-05/0.7607, allocations: 4.062 kB / 0.7631 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.7608, allocations: 7.984 kB / 0.7631 GB, free: 15.16 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001054/0.7609, allocations: 91.23 kB / 0.7632 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7609, allocations: 0 / 0.7632 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004447/0.7614, allocations: 12 kB / 0.7632 GB, free: 15.05 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) * 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 (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.0008693/0.7622, allocations: 0.7622 MB / 0.764 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002602/0.7625, allocations: 115.3 kB / 0.7641 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.7625, allocations: 4 kB / 0.7641 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.7627, allocations: 91.33 kB / 0.7642 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.7631, allocations: 15.92 kB / 0.7642 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.7646, allocations: 0.7881 MB / 0.765 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004432/0.7651, allocations: 0.6926 MB / 0.7656 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.841e-05/0.7651, allocations: 4 kB / 0.7657 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.553e-05/0.7652, allocations: 15.42 kB / 0.7657 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of SimCode: time 3.045e-06/0.7652, allocations: 0 / 0.7657 GB, free: 12.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.7836, allocations: 1.575 MB / 0.7672 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003042/0.784, allocations: 158.7 kB / 0.7674 GB, free: 10.73 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.477, allocations: 0 / 0.7674 GB, free: 10.73 MB / 0.5417 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)