Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="IDEAS_dev_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.007964/0.007964, allocations: 102.1 kB / 15.73 MB, free: 5.508 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.001913/0.001913, allocations: 197.4 kB / 16.68 MB, free: 5.438 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.636/1.636, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.011/1.011, allocations: 135.6 MB / 426.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 63.89 kB / 0.5858 GB, free: 3.25 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4218/0.4237, allocations: 81.02 MB / 0.6649 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.BooleanReplicator): time 0.002599/0.4263, allocations: 1.783 MB / 0.6666 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001367/0.4277, allocations: 1.013 MB / 0.6676 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.282e-05/0.4278, allocations: 5.406 kB / 0.6676 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005597/0.4284, allocations: 162.5 kB / 0.6678 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.4287, allocations: 117.3 kB / 0.6679 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004229/0.4291, allocations: 163 kB / 0.668 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.4293, allocations: 167.6 kB / 0.6682 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.4294, allocations: 35.95 kB / 0.6682 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.306e-05/0.4295, allocations: 71.52 kB / 0.6683 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.664e-05/0.4296, allocations: 65.81 kB / 0.6684 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.493e-05/0.4296, allocations: 11.69 kB / 0.6684 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.4298, allocations: 75.59 kB / 0.6684 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.393e-05/0.4299, allocations: 39.38 kB / 0.6685 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 6.844e-05/0.4299, allocations: 60.7 kB / 0.6685 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002598/0.4302, allocations: 199.1 kB / 0.6687 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.4302, allocations: 1.312 kB / 0.6687 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4302, allocations: 0 / 0.6687 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.4302, allocations: 0 / 0.6687 GB, free: 3.914 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.0006169/0.4309, allocations: 0.4913 MB / 0.6692 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.4309, allocations: 13.66 kB / 0.6692 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.691e-05/0.4309, allocations: 33.31 kB / 0.6692 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.837e-05/0.431, allocations: 24.05 kB / 0.6693 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.4312, allocations: 244.4 kB / 0.6695 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.4313, allocations: 7 kB / 0.6695 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.4313, allocations: 6.719 kB / 0.6695 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001604/0.4314, allocations: 83.81 kB / 0.6696 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.4315, allocations: 0 / 0.6696 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.4315, allocations: 9.406 kB / 0.6696 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.4315, allocations: 2.625 kB / 0.6696 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.727e-05/0.4316, allocations: 35.14 kB / 0.6696 GB, free: 3 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003795/0.432, allocations: 354.1 kB / 0.67 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.4321, allocations: 70.86 kB / 0.67 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.159e-05/0.4322, allocations: 45.56 kB / 0.6701 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.4322, allocations: 5.266 kB / 0.6701 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001314/0.4324, allocations: 81.09 kB / 0.6702 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.4324, allocations: 0 / 0.6702 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0003025/0.4327, allocations: 141.7 kB / 0.6703 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/0.4327, allocations: 78.42 kB / 0.6704 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.433, allocations: 279.4 kB / 0.6707 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.433, allocations: 26.98 kB / 0.6707 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.099e-05/0.433, allocations: 119.9 kB / 0.6708 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.4331, allocations: 32 kB / 0.6708 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.4331, allocations: 23.09 kB / 0.6708 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.752e-05/0.4332, allocations: 331.4 kB / 0.6712 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.193e-05/0.4332, allocations: 27.48 kB / 0.6712 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.293e-05/0.4333, allocations: 69.56 kB / 0.6713 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.4334, allocations: 68.27 kB / 0.6713 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4334, allocations: 0 / 0.6713 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001756/0.4336, allocations: 114.6 kB / 0.6714 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.4336, allocations: 5.812 kB / 0.6714 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4336, allocations: 0.9688 kB / 0.6714 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.4337, allocations: 0.9688 kB / 0.6714 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.59e-05/0.4337, allocations: 21.05 kB / 0.6715 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.4338, allocations: 5.25 kB / 0.6715 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.466e-05/0.4338, allocations: 7.844 kB / 0.6715 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.4338, allocations: 6.734 kB / 0.6715 GB, free: 1.41 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 9.795e-05/0.4339, allocations: 144.3 kB / 0.6716 GB, free: 1.277 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.666e-05/0.434, allocations: 15.47 kB / 0.6716 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.434, allocations: 19.11 kB / 0.6716 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.434, allocations: 7.531 kB / 0.6717 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.434, allocations: 0 / 0.6717 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.434, allocations: 7.922 kB / 0.6717 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.4342, allocations: 223.1 kB / 0.6719 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.4342, allocations: 5.328 kB / 0.6719 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.942e-05/0.4342, allocations: 6.219 kB / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.4342, allocations: 1.344 kB / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.4342, allocations: 1.469 kB / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4342, allocations: 0 / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4343, allocations: 1.312 kB / 0.6719 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/0.4345, allocations: 153.1 kB / 0.672 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-05/0.4345, allocations: 102.2 kB / 0.6721 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.722e-05/0.4345, allocations: 1.281 kB / 0.6721 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.563e-05/0.4346, allocations: 2.844 kB / 0.6721 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.874e-05/0.4346, allocations: 10.89 kB / 0.6721 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.4346, allocations: 2.781 kB / 0.6721 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001498/0.4348, allocations: 197.4 kB / 0.6723 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4348, allocations: 0 / 0.6723 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002474/0.4351, allocations: 34.22 kB / 0.6724 GB, free: 0.6172 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.00177/0.4368, allocations: 0.9843 MB / 0.6733 GB, free: 15.88 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0002176/0.4371, allocations: 71.12 kB / 0.6734 GB, free: 15.85 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4371, allocations: 4.844 kB / 0.6734 GB, free: 15.85 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 8.529e-05/0.4372, allocations: 41.64 kB / 0.6734 GB, free: 15.83 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.4375, allocations: 42.78 kB / 0.6735 GB, free: 15.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.4397, allocations: 1.972 MB / 0.6754 GB, free: 14.26 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.4401, allocations: 0.7229 MB / 0.6761 GB, free: 13.54 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 7.491e-05/0.4402, allocations: 25.59 kB / 0.6761 GB, free: 13.53 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.518e-05/0.4403, allocations: 49.25 kB / 0.6762 GB, free: 13.49 MB / 0.5138 GB Notification: Performance of SimCode: time 6.71e-07/0.4403, allocations: 0 / 0.6762 GB, free: 13.49 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.4666, allocations: 4.5 MB / 0.6806 GB, free: 11.13 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.034/8.5, allocations: 18.69 kB / 0.6806 GB, free: 11.12 MB / 0.5138 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_BooleanReplicator.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)