Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator.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.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_BooleanReplicator",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.005314/0.005314, allocations: 170.8 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7249/0.7249, allocations: 135.2 MB / 151 MB, free: 13.83 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.463/1.463, allocations: 223.2 MB / 406.8 MB, free: 3.266 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.0008806/0.0008803, allocations: 85.8 kB / 489.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004437, allocations: 12 kB / 0.5692 GB, free: 14.12 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4631/0.4636, allocations: 82.3 MB / 0.6495 GB, free: 36.18 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.6442, allocations: 115.8 MB / 0.7626 GB, free: 268 kB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002268/0.6445, allocations: 79.95 kB / 0.7626 GB, free: 188 kB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01604/0.6605, allocations: 5.566 MB / 0.7681 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.432e-06/0.6606, allocations: 0 / 0.7681 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.113e-05/0.6606, allocations: 8 kB / 0.7681 GB, free: 10.6 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007343/0.6614, allocations: 0.4923 MB / 0.7686 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.6614, allocations: 8.031 kB / 0.7686 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.934e-05/0.6615, allocations: 34.56 kB / 0.7686 GB, free: 10 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.027e-05/0.6615, allocations: 19.81 kB / 0.7686 GB, free: 9.984 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004197/0.662, allocations: 255.6 kB / 0.7689 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.662, allocations: 4 kB / 0.7689 GB, free: 9.688 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.662, allocations: 4 kB / 0.7689 GB, free: 9.684 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002097/0.6622, allocations: 91.25 kB / 0.769 GB, free: 9.582 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.6623, allocations: 4 kB / 0.769 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.6623, allocations: 0 / 0.769 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.686e-05/0.6623, allocations: 0 / 0.769 GB, free: 9.578 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.6624, allocations: 43.97 kB / 0.769 GB, free: 9.535 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/0.663, allocations: 364.8 kB / 0.7694 GB, free: 9.129 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.6632, allocations: 74.61 kB / 0.7694 GB, free: 9.047 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.6633, allocations: 8.062 kB / 0.7694 GB, free: 9.039 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/0.6634, allocations: 83.31 kB / 0.7695 GB, free: 8.945 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.6634, allocations: 0 / 0.7695 GB, free: 8.945 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.000429/0.6639, allocations: 231.8 kB / 0.7697 GB, free: 8.695 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/0.664, allocations: 85.17 kB / 0.7698 GB, free: 8.594 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002983/0.6643, allocations: 249.8 kB / 0.7701 GB, free: 8.344 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.6643, allocations: 29.7 kB / 0.7701 GB, free: 8.309 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 8.543e-05/0.6644, allocations: 116.1 kB / 0.7702 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/0.6644, allocations: 19.72 kB / 0.7702 GB, free: 8.172 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.813e-06/0.6644, allocations: 4 kB / 0.7702 GB, free: 8.168 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.6646, allocations: 330.8 kB / 0.7705 GB, free: 7.836 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.501e-05/0.6647, allocations: 31.92 kB / 0.7706 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.288e-05/0.6648, allocations: 55.42 kB / 0.7706 GB, free: 7.738 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.6649, allocations: 36.02 kB / 0.7707 GB, free: 7.703 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.6649, allocations: 4 kB / 0.7707 GB, free: 7.699 MB / 0.5417 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002291/0.6652, allocations: 117.4 kB / 0.7708 GB, free: 7.578 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.6652, allocations: 4 kB / 0.7708 GB, free: 7.574 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.6652, allocations: 4 kB / 0.7708 GB, free: 7.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.6652, allocations: 0 / 0.7708 GB, free: 7.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.146e-05/0.6653, allocations: 12.36 kB / 0.7708 GB, free: 7.559 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.6653, allocations: 3.938 kB / 0.7708 GB, free: 7.555 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.782e-05/0.6654, allocations: 23.92 kB / 0.7708 GB, free: 7.531 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.6654, allocations: 0 / 0.7708 GB, free: 7.531 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * 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: 1 * Algorithm blocks: 0 * 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.0001482/0.6656, allocations: 145.8 kB / 0.771 GB, free: 7.379 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.563e-05/0.6656, allocations: 19.8 kB / 0.771 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002635/0.6659, allocations: 123 kB / 0.7711 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.6659, allocations: 4 kB / 0.7711 GB, free: 7.23 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.6659, allocations: 4 kB / 0.7711 GB, free: 7.227 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.6659, allocations: 0 / 0.7711 GB, free: 7.227 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.6662, allocations: 245.4 kB / 0.7713 GB, free: 6.938 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.6662, allocations: 0 / 0.7713 GB, free: 6.938 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.064e-05/0.6662, allocations: 7.938 kB / 0.7713 GB, free: 6.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.6662, allocations: 0 / 0.7713 GB, free: 6.93 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.6662, allocations: 4 kB / 0.7713 GB, free: 6.926 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.6662, allocations: 0 / 0.7713 GB, free: 6.926 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.6662, allocations: 0 / 0.7713 GB, free: 6.926 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002374/0.6665, allocations: 152.8 kB / 0.7715 GB, free: 6.758 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 8.349e-05/0.6666, allocations: 104.9 kB / 0.7716 GB, free: 6.637 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.022e-05/0.6666, allocations: 4 kB / 0.7716 GB, free: 6.633 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.848e-05/0.6667, allocations: 8 kB / 0.7716 GB, free: 6.625 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.6667, allocations: 3.984 kB / 0.7716 GB, free: 6.621 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.6667, allocations: 4 kB / 0.7716 GB, free: 6.617 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002082/0.667, allocations: 192.6 kB / 0.7718 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of sort global known variables: time 3.106e-06/0.667, allocations: 0 / 0.7718 GB, free: 6.43 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002612/0.6672, allocations: 43.88 kB / 0.7718 GB, free: 6.387 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: 8 ($whenCondition1,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * 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.001735/0.669, allocations: 1.025 MB / 0.7728 GB, free: 5.496 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002262/0.6692, allocations: 79.91 kB / 0.7729 GB, free: 5.418 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.6692, allocations: 0 / 0.7729 GB, free: 5.418 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.028e-05/0.6693, allocations: 35.98 kB / 0.7729 GB, free: 5.383 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002552/0.6696, allocations: 41.77 kB / 0.773 GB, free: 5.344 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.6713, allocations: 1.142 MB / 0.7741 GB, free: 4.141 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.6717, allocations: 0.7321 MB / 0.7748 GB, free: 3.383 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 9.573e-05/0.6718, allocations: 29.36 kB / 0.7748 GB, free: 3.355 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.96e-05/0.6719, allocations: 47.42 kB / 0.7749 GB, free: 3.309 MB / 0.5417 GB Notification: Performance of SimCode: time 5.01e-07/0.6719, allocations: 0 / 0.7749 GB, free: 3.309 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01629/0.6882, allocations: 4.097 MB / 0.7789 GB, free: 15.33 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/0.6884, allocations: 206.9 kB / 0.7791 GB, free: 15.09 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.719/2.407, allocations: 0 / 0.7791 GB, free: 15.09 MB / 0.5573 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_BooleanReplicator.fmu > IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)