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.00107/0.00107, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7792/0.7792, allocations: 132.2 MB / 422.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 62.44 kB / 0.5019 GB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4347/0.436, allocations: 80.2 MB / 0.5802 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.BooleanReplicator): time 0.003205/0.4392, allocations: 1.786 MB / 0.5819 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.4407, allocations: 1.016 MB / 0.5829 GB, free: 2.629 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.519e-05/0.4408, allocations: 1.469 kB / 0.5829 GB, free: 2.629 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006217/0.4414, allocations: 166.1 kB / 0.5831 GB, free: 2.578 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003007/0.4417, allocations: 111.2 kB / 0.5832 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004833/0.4422, allocations: 164.9 kB / 0.5834 GB, free: 2.449 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.4425, allocations: 172.8 kB / 0.5835 GB, free: 2.371 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.4426, allocations: 27.36 kB / 0.5835 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.4427, allocations: 74.38 kB / 0.5836 GB, free: 2.32 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.4428, allocations: 74.31 kB / 0.5837 GB, free: 2.289 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.4428, allocations: 8.562 kB / 0.5837 GB, free: 2.289 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.443, allocations: 52.97 kB / 0.5837 GB, free: 2.277 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.066e-05/0.4431, allocations: 40.36 kB / 0.5838 GB, free: 2.262 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.171e-05/0.4432, allocations: 63.39 kB / 0.5838 GB, free: 2.215 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.4435, allocations: 198.6 kB / 0.584 GB, free: 2.133 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.4435, allocations: 0.9688 kB / 0.584 GB, free: 2.133 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4435, allocations: 4 kB / 0.584 GB, free: 2.129 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.4435, allocations: 0 / 0.584 GB, free: 2.129 MB / 430.1 MB 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.0006451/0.4441, allocations: 498.4 kB / 0.5845 GB, free: 1.656 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.4442, allocations: 9.031 kB / 0.5845 GB, free: 1.656 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.782e-05/0.4442, allocations: 39.38 kB / 0.5846 GB, free: 1.613 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.851e-05/0.4443, allocations: 20.09 kB / 0.5846 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.4445, allocations: 250.1 kB / 0.5848 GB, free: 1.363 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.4445, allocations: 2.375 kB / 0.5848 GB, free: 1.363 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.4446, allocations: 11.67 kB / 0.5848 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.4447, allocations: 87.23 kB / 0.5849 GB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.433e-06/0.4448, allocations: 0 / 0.5849 GB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.4448, allocations: 1.734 kB / 0.5849 GB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.643e-05/0.4448, allocations: 2.375 kB / 0.5849 GB, free: 1.293 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.536e-05/0.4449, allocations: 40.56 kB / 0.585 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004489/0.4453, allocations: 349.3 kB / 0.5853 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.4455, allocations: 79.34 kB / 0.5854 GB, free: 0.9219 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.742e-05/0.4456, allocations: 33.2 kB / 0.5854 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.4456, allocations: 0.75 kB / 0.5854 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001498/0.4458, allocations: 88.39 kB / 0.5855 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.4458, allocations: 0 / 0.5855 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003451/0.4462, allocations: 144.4 kB / 0.5856 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.4462, allocations: 79.09 kB / 0.5857 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.4465, allocations: 273.8 kB / 0.586 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.4465, allocations: 31.14 kB / 0.586 GB, free: 488 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.336e-05/0.4466, allocations: 116.6 kB / 0.5861 GB, free: 380 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.4466, allocations: 21.98 kB / 0.5861 GB, free: 364 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.743e-05/0.4467, allocations: 28.61 kB / 0.5861 GB, free: 340 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.122e-05/0.4467, allocations: 330.1 kB / 0.5865 GB, free: 12 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.227e-05/0.4468, allocations: 26.47 kB / 0.5865 GB, free: 4 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.4469, allocations: 62.75 kB / 0.5865 GB, free: 15.95 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.4471, allocations: 69.28 kB / 0.5866 GB, free: 15.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4471, allocations: 4.031 kB / 0.5866 GB, free: 15.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002324/0.4473, allocations: 119.1 kB / 0.5867 GB, free: 15.85 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/0.4474, allocations: 5.5 kB / 0.5867 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.4474, allocations: 1.375 kB / 0.5867 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.4474, allocations: 0.7969 kB / 0.5867 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.693e-05/0.4475, allocations: 14.39 kB / 0.5867 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.4475, allocations: 2.625 kB / 0.5867 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.567e-05/0.4476, allocations: 15.36 kB / 0.5868 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.4476, allocations: 3.812 kB / 0.5868 GB, free: 15.84 MB / 446.1 MB 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.0001465/0.4477, allocations: 149 kB / 0.5869 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.4478, allocations: 15.8 kB / 0.5869 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.78e-05/0.4478, allocations: 18.05 kB / 0.5869 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.4479, allocations: 3.812 kB / 0.5869 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4479, allocations: 0.7969 kB / 0.5869 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.4479, allocations: 3.938 kB / 0.587 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/0.4481, allocations: 219.1 kB / 0.5872 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.4481, allocations: 1.469 kB / 0.5872 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.314e-05/0.4482, allocations: 11.45 kB / 0.5872 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.4482, allocations: 4.5 kB / 0.5872 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.4482, allocations: 2.109 kB / 0.5872 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.4482, allocations: 1.656 kB / 0.5872 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4482, allocations: 11.86 kB / 0.5872 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.4484, allocations: 144.7 kB / 0.5873 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.312e-05/0.4485, allocations: 94.64 kB / 0.5874 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.933e-05/0.4486, allocations: 2.562 kB / 0.5874 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.334e-05/0.4486, allocations: 8.172 kB / 0.5874 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.935e-05/0.4487, allocations: 16.81 kB / 0.5874 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.4487, allocations: 3.938 kB / 0.5874 GB, free: 15.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000218/0.4489, allocations: 190.6 kB / 0.5876 GB, free: 15.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4489, allocations: 3.938 kB / 0.5876 GB, free: 15.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.4492, allocations: 32.95 kB / 0.5877 GB, free: 15.11 MB / 446.1 MB 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.001427/0.4507, allocations: 0.9853 MB / 0.5886 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002704/0.4509, allocations: 77.69 kB / 0.5887 GB, free: 14.39 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.451, allocations: 1.344 kB / 0.5887 GB, free: 14.39 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 9.037e-05/0.4511, allocations: 36.47 kB / 0.5887 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.4514, allocations: 45.16 kB / 0.5888 GB, free: 14.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.4538, allocations: 1.953 MB / 0.5907 GB, free: 12.96 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.4542, allocations: 0.7296 MB / 0.5914 GB, free: 12.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.649e-05/0.4543, allocations: 22.72 kB / 0.5914 GB, free: 12.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.464e-05/0.4544, allocations: 45.86 kB / 0.5915 GB, free: 12.21 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4544, allocations: 4 kB / 0.5915 GB, free: 12.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.4767, allocations: 4.39 MB / 0.5958 GB, free: 11.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/8.033, allocations: 17.12 kB / 0.5958 GB, free: 11 MB / 446.1 MB (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)