Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="IBPSA_latest_IBPSA_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.001274/0.001274, allocations: 110.7 kB / 16.41 MB, free: 5.984 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.001252/0.001252, allocations: 191 kB / 17.34 MB, free: 5.602 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8546/0.8546, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002836/0.002836, allocations: 72.58 kB / 0.5735 GB, free: 27.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1755, allocations: 78.87 MB / 0.6506 GB, free: 3.695 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.BooleanReplicator): time 0.003009/0.1786, allocations: 1.77 MB / 0.6523 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.1803, allocations: 1.026 MB / 0.6533 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.621e-05/0.1804, allocations: 7.938 kB / 0.6533 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006531/0.1811, allocations: 159.6 kB / 0.6534 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002973/0.1814, allocations: 115.6 kB / 0.6536 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004852/0.1819, allocations: 166.8 kB / 0.6537 GB, free: 452 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002267/0.1821, allocations: 163.6 kB / 0.6539 GB, free: 288 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.1822, allocations: 29.09 kB / 0.6539 GB, free: 260 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001156/0.1823, allocations: 71.69 kB / 0.654 GB, free: 188 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.1825, allocations: 67.75 kB / 0.654 GB, free: 120 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.603e-05/0.1825, allocations: 4 kB / 0.654 GB, free: 116 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001553/0.1827, allocations: 63.91 kB / 0.6541 GB, free: 52 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-05/0.1828, allocations: 47.84 kB / 0.6541 GB, free: 4 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1829, allocations: 67.72 kB / 0.6542 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003132/0.1832, allocations: 195.5 kB / 0.6544 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1832, allocations: 0 / 0.6544 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.744e-06/0.1832, allocations: 3.938 kB / 0.6544 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.712e-06/0.1832, allocations: 0 / 0.6544 GB, free: 15.74 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.0008023/0.184, allocations: 0.4961 MB / 0.6549 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.1841, allocations: 8.031 kB / 0.6549 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.904e-05/0.1841, allocations: 34.75 kB / 0.6549 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.1842, allocations: 20.84 kB / 0.6549 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003305/0.1845, allocations: 252.9 kB / 0.6552 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.1845, allocations: 4.375 kB / 0.6552 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.131e-05/0.1846, allocations: 11.88 kB / 0.6552 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.1848, allocations: 87.38 kB / 0.6553 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.1848, allocations: 3.984 kB / 0.6553 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1848, allocations: 0 / 0.6553 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.966e-05/0.1848, allocations: 4 kB / 0.6553 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.466e-05/0.1849, allocations: 31.98 kB / 0.6553 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005243/0.1855, allocations: 356.6 kB / 0.6557 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.1857, allocations: 66.69 kB / 0.6557 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.291e-05/0.1857, allocations: 36.84 kB / 0.6558 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.1858, allocations: 4 kB / 0.6558 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/0.186, allocations: 91.3 kB / 0.6559 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.532e-06/0.186, allocations: 0 / 0.6559 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0003548/0.1863, allocations: 145.5 kB / 0.656 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.1864, allocations: 77.11 kB / 0.6561 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1867, allocations: 270.7 kB / 0.6563 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1867, allocations: 29.7 kB / 0.6564 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/0.1868, allocations: 128 kB / 0.6565 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.133e-05/0.1868, allocations: 23.8 kB / 0.6565 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.1869, allocations: 25.7 kB / 0.6565 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.187, allocations: 326.8 kB / 0.6568 GB, free: 13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.762e-05/0.1871, allocations: 27.98 kB / 0.6569 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.1872, allocations: 63.41 kB / 0.6569 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.1874, allocations: 78.09 kB / 0.657 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1874, allocations: 3.938 kB / 0.657 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002236/0.1876, allocations: 121.5 kB / 0.6571 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.1877, allocations: 4 kB / 0.6571 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1877, allocations: 0 / 0.6571 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.1877, allocations: 0 / 0.6571 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.99e-05/0.1878, allocations: 12 kB / 0.6571 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.1878, allocations: 0 / 0.6571 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.372e-05/0.1879, allocations: 19.95 kB / 0.6571 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.1879, allocations: 4 kB / 0.6572 GB, free: 12.64 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.0001637/0.188, allocations: 145.8 kB / 0.6573 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.237e-05/0.1881, allocations: 15.91 kB / 0.6573 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.646e-05/0.1881, allocations: 17.39 kB / 0.6573 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.1882, allocations: 4 kB / 0.6573 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.1882, allocations: 0 / 0.6573 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.1882, allocations: 3.938 kB / 0.6573 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002348/0.1884, allocations: 237.5 kB / 0.6576 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1884, allocations: 0 / 0.6576 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.289e-05/0.1885, allocations: 4 kB / 0.6576 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1885, allocations: 0 / 0.6576 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.1885, allocations: 3.984 kB / 0.6576 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1885, allocations: 0 / 0.6576 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1885, allocations: 0 / 0.6576 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.1888, allocations: 144.9 kB / 0.6577 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.941e-05/0.1889, allocations: 105 kB / 0.6578 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.1889, allocations: 3.938 kB / 0.6578 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.815e-05/0.1889, allocations: 4 kB / 0.6578 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.384e-05/0.189, allocations: 11.92 kB / 0.6578 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.189, allocations: 0 / 0.6578 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002148/0.1892, allocations: 200.4 kB / 0.658 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.4e-07/0.1892, allocations: 0 / 0.658 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002474/0.1895, allocations: 31.92 kB / 0.658 GB, free: 11.64 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.00201/0.1915, allocations: 1.006 MB / 0.659 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002325/0.1918, allocations: 71.91 kB / 0.6591 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.1918, allocations: 4 kB / 0.6591 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.121e-05/0.1919, allocations: 35.97 kB / 0.6591 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.1922, allocations: 45.84 kB / 0.6592 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.1946, allocations: 1.947 MB / 0.6611 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.195, allocations: 0.7278 MB / 0.6618 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.431e-05/0.1951, allocations: 25.72 kB / 0.6618 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.961e-05/0.1952, allocations: 43.42 kB / 0.6619 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of SimCode: time 7.21e-07/0.1952, allocations: 0 / 0.6619 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02761/0.2228, allocations: 4.504 MB / 0.6663 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.438/8.661, allocations: 21.59 kB / 0.6663 GB, free: 3.348 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.BooleanReplicator.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Math_Examples_BooleanReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)