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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005731/0.005731, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 200.3 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8479/0.8479, allocations: 132.2 MB / 422.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 68.11 kB / 0.5809 GB, free: 24.14 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.145, allocations: 80.2 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.BooleanReplicator): time 0.003472/0.1485, allocations: 1.779 MB / 0.6609 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.1504, allocations: 1.026 MB / 0.6619 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.1506, allocations: 3.938 kB / 0.6619 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006669/0.1512, allocations: 167.5 kB / 0.6621 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003196/0.1516, allocations: 107.6 kB / 0.6622 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.1521, allocations: 170.9 kB / 0.6624 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.1523, allocations: 163.6 kB / 0.6625 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.1525, allocations: 37.03 kB / 0.6626 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.1526, allocations: 67.77 kB / 0.6626 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.1527, allocations: 63.75 kB / 0.6627 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.1527, allocations: 8 kB / 0.6627 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001762/0.1529, allocations: 63.89 kB / 0.6627 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.687e-05/0.153, allocations: 43.84 kB / 0.6628 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.822e-05/0.1531, allocations: 59.61 kB / 0.6628 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003511/0.1535, allocations: 207.4 kB / 0.663 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.1535, allocations: 4 kB / 0.663 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.094e-06/0.1535, allocations: 4 kB / 0.663 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.1535, allocations: 0 / 0.663 GB, free: 6.758 MB / 0.4981 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.0008607/0.1544, allocations: 0.4883 MB / 0.6635 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.1544, allocations: 12.03 kB / 0.6635 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.93e-05/0.1545, allocations: 34.75 kB / 0.6636 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.305e-05/0.1546, allocations: 16.84 kB / 0.6636 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003505/0.1549, allocations: 252.9 kB / 0.6638 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.1549, allocations: 8.375 kB / 0.6638 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.155, allocations: 3.938 kB / 0.6638 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.1552, allocations: 95.38 kB / 0.6639 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1552, allocations: 0 / 0.6639 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1552, allocations: 0 / 0.6639 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.1552, allocations: 4 kB / 0.6639 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.1554, allocations: 31.92 kB / 0.664 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005569/0.1559, allocations: 360.7 kB / 0.6643 GB, free: 5.301 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.1561, allocations: 74.67 kB / 0.6644 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.957e-05/0.1562, allocations: 36.8 kB / 0.6644 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.1563, allocations: 3.984 kB / 0.6644 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/0.1565, allocations: 83.33 kB / 0.6645 GB, free: 5.082 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.953e-06/0.1565, allocations: 4 kB / 0.6645 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0003631/0.1568, allocations: 145.5 kB / 0.6646 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.1569, allocations: 77.11 kB / 0.6647 GB, free: 4.836 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.1572, allocations: 270.7 kB / 0.665 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.1572, allocations: 29.7 kB / 0.665 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.1573, allocations: 116.1 kB / 0.6651 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.1574, allocations: 23.8 kB / 0.6651 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.1574, allocations: 29.69 kB / 0.6652 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1576, allocations: 330.8 kB / 0.6655 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.083e-05/0.1577, allocations: 27.98 kB / 0.6655 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.911e-05/0.1578, allocations: 66.19 kB / 0.6656 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.1579, allocations: 73.75 kB / 0.6656 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1579, allocations: 0 / 0.6656 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002217/0.1582, allocations: 121.5 kB / 0.6658 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.1582, allocations: 4.375 kB / 0.6658 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.1582, allocations: 0 / 0.6658 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1582, allocations: 0 / 0.6658 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.508e-05/0.1583, allocations: 16 kB / 0.6658 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.1583, allocations: 11.86 kB / 0.6658 GB, free: 3.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.941e-05/0.1584, allocations: 7.938 kB / 0.6658 GB, free: 3.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.1584, allocations: 0 / 0.6658 GB, free: 3.672 MB / 0.4981 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 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001613/0.1586, allocations: 155.2 kB / 0.6659 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.072e-05/0.1586, allocations: 15.91 kB / 0.666 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.899e-05/0.1587, allocations: 17.39 kB / 0.666 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.1587, allocations: 4 kB / 0.666 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.1587, allocations: 0 / 0.666 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1587, allocations: 3.938 kB / 0.666 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002504/0.159, allocations: 229.5 kB / 0.6662 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.159, allocations: 0 / 0.6662 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.202e-05/0.159, allocations: 4 kB / 0.6662 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.159, allocations: 0 / 0.6662 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.159, allocations: 7.984 kB / 0.6662 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.159, allocations: 0 / 0.6662 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.159, allocations: 0 / 0.6662 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.1593, allocations: 148.9 kB / 0.6664 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.165e-05/0.1594, allocations: 97 kB / 0.6664 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.1595, allocations: 0 / 0.6664 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.965e-05/0.1595, allocations: 4 kB / 0.6664 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.1596, allocations: 11.92 kB / 0.6665 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.828e-06/0.1596, allocations: 4 kB / 0.6665 GB, free: 2.887 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002169/0.1598, allocations: 191.2 kB / 0.6666 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1598, allocations: 4 kB / 0.6666 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002739/0.1601, allocations: 31.92 kB / 0.6667 GB, free: 2.664 MB / 0.4981 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.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002443/0.1625, allocations: 1.002 MB / 0.6677 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003491/0.1629, allocations: 75.89 kB / 0.6677 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.1629, allocations: 0 / 0.6677 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.163, allocations: 39.92 kB / 0.6678 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.1635, allocations: 48.84 kB / 0.6678 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/0.1664, allocations: 1.962 MB / 0.6697 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.1668, allocations: 0.7201 MB / 0.6704 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.196e-05/0.1669, allocations: 21.42 kB / 0.6705 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.441e-05/0.167, allocations: 43.42 kB / 0.6705 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of SimCode: time 4.41e-07/0.167, allocations: 4 kB / 0.6705 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02703/0.194, allocations: 4.497 MB / 0.6749 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.05/8.244, allocations: 10.19 kB / 0.6749 GB, free: 10.42 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 IDEAS_IDEAS_Utilities_Math_Examples_BooleanReplicator.fmu > IDEAS_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)