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.00217/0.00217, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9392/0.9392, allocations: 133.4 MB / 146.7 MB, free: 10.79 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.637/1.637, allocations: 221.3 MB / 400.4 MB, free: 5.809 MB / 314.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: 93.56 kB / 483.3 MB, free: 5.883 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.446e-05/3.448e-05, allocations: 1.938 kB / 0.5601 GB, free: 87.91 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1763, allocations: 82.31 MB / 0.6405 GB, free: 7.742 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.664/0.8403, allocations: 111.8 MB / 0.7497 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.8406, allocations: 73.98 kB / 0.7497 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.003511/0.8441, allocations: 1.232 MB / 0.7509 GB, free: 27.74 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.834e-06/0.8441, allocations: 0 / 0.7509 GB, free: 27.74 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.8441, allocations: 4 kB / 0.7509 GB, free: 27.73 MB / 0.5105 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.0004738/0.8446, allocations: 379.1 kB / 0.7513 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.8446, allocations: 11.47 kB / 0.7513 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.822e-05/0.8447, allocations: 30.56 kB / 0.7514 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.8447, allocations: 5.766 kB / 0.7514 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.8449, allocations: 177.5 kB / 0.7515 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.8449, allocations: 4 kB / 0.7515 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.8449, allocations: 3.844 kB / 0.7515 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.845, allocations: 55.56 kB / 0.7516 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.8451, allocations: 0 / 0.7516 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.073e-05/0.8451, allocations: 0 / 0.7516 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.8451, allocations: 0 / 0.7516 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.699e-05/0.8451, allocations: 18.19 kB / 0.7516 GB, free: 27.07 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.8456, allocations: 272.1 kB / 0.7519 GB, free: 26.81 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.132e-05/0.8456, allocations: 45.67 kB / 0.7519 GB, free: 26.78 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.196e-05/0.8457, allocations: 17.48 kB / 0.7519 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.8457, allocations: 7.688 kB / 0.7519 GB, free: 26.77 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001495/0.8459, allocations: 96.52 kB / 0.752 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.8459, allocations: 0 / 0.752 GB, free: 26.69 MB / 0.5105 GB Notification: Performance of matching and sorting (n=9): time 0.0002276/0.8461, allocations: 122.8 kB / 0.7521 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.8462, allocations: 88.67 kB / 0.7522 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.239e-05/0.8463, allocations: 111.5 kB / 0.7523 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.8463, allocations: 33.27 kB / 0.7524 GB, free: 26.39 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 4.74e-05/0.8463, allocations: 83 kB / 0.7524 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.8464, allocations: 15.31 kB / 0.7525 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.8464, allocations: 0 / 0.7525 GB, free: 26.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.8465, allocations: 321.7 kB / 0.7528 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.69e-05/0.8465, allocations: 11.72 kB / 0.7528 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.529e-05/0.8466, allocations: 37.83 kB / 0.7528 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.184e-05/0.8466, allocations: 52.19 kB / 0.7529 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8467, allocations: 0 / 0.7529 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000131/0.8468, allocations: 126.8 kB / 0.753 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.8468, allocations: 34.2 kB / 0.753 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.8468, allocations: 0 / 0.753 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.8469, allocations: 64 / 0.753 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.261e-05/0.8469, allocations: 10.78 kB / 0.753 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.8469, allocations: 0 / 0.753 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.266e-05/0.847, allocations: 16.3 kB / 0.753 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.847, allocations: 3.875 kB / 0.753 GB, free: 25.81 MB / 0.5105 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 9.377e-05/0.8471, allocations: 141.1 kB / 0.7532 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.411e-05/0.8471, allocations: 7.875 kB / 0.7532 GB, free: 25.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.8472, allocations: 11.31 kB / 0.7532 GB, free: 25.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.8472, allocations: 7.938 kB / 0.7532 GB, free: 25.65 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.8472, allocations: 0 / 0.7532 GB, free: 25.65 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.8472, allocations: 0 / 0.7532 GB, free: 25.65 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.8475, allocations: 408.3 kB / 0.7536 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.8475, allocations: 4.062 kB / 0.7536 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-06/0.8476, allocations: 0 / 0.7536 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.8476, allocations: 3.875 kB / 0.7536 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.8476, allocations: 3.281 kB / 0.7536 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.8476, allocations: 0 / 0.7536 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8476, allocations: 3.953 kB / 0.7536 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001892/0.8478, allocations: 232.9 kB / 0.7538 GB, free: 25.13 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 4.422e-05/0.8479, allocations: 77.11 kB / 0.7539 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.8479, allocations: 10.89 kB / 0.7539 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.416e-05/0.848, allocations: 7.75 kB / 0.7539 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.848, allocations: 10.83 kB / 0.7539 GB, free: 25.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.8481, allocations: 11.2 kB / 0.7539 GB, free: 25.03 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 4.977e-05/0.8481, allocations: 90.84 kB / 0.754 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8481, allocations: 0 / 0.754 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002026/0.8483, allocations: 11.66 kB / 0.754 GB, free: 24.95 MB / 0.5105 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.0005023/0.8489, allocations: 0.7608 MB / 0.7548 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001672/0.849, allocations: 116.6 kB / 0.7549 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.849, allocations: 0 / 0.7549 GB, free: 24.19 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 8.381e-05/0.8491, allocations: 89.22 kB / 0.755 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002022/0.8493, allocations: 10.72 kB / 0.755 GB, free: 24.13 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003859/0.8497, allocations: 134.7 kB / 0.7551 GB, free: 24.02 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002644/0.85, allocations: 0.6868 MB / 0.7558 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 2.817e-05/0.8501, allocations: 7.906 kB / 0.7558 GB, free: 23.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.165e-05/0.8501, allocations: 22.61 kB / 0.7558 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of SimCode: time 6.81e-07/0.8501, allocations: 0 / 0.7558 GB, free: 23.31 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.8625, allocations: 1.599 MB / 0.7574 GB, free: 23.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/0.8627, allocations: 133.6 kB / 0.7575 GB, free: 22.88 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/2.461, allocations: 3.938 kB / 0.7575 GB, free: 22.88 MB / 0.5105 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)