Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildingSystems_BuildingSystems_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.0007531/0.0007531, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004735/0.004735, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.311/1.311, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001637/0.001637, allocations: 277.8 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9202/0.9202, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004134/0.0004134, allocations: 20.7 kB / 0.5988 GB, free: 28.03 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1756, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.002189/0.1778, allocations: 1.479 MB / 0.6867 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001575/0.1794, allocations: 0.9935 MB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.994e-05/0.1795, allocations: 0 / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006154/0.1801, allocations: 156 kB / 0.6878 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.1804, allocations: 104.8 kB / 0.6879 GB, free: 12.25 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003697/0.1807, allocations: 149 kB / 0.688 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002349/0.181, allocations: 163.6 kB / 0.6882 GB, free: 11.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.1811, allocations: 37.92 kB / 0.6882 GB, free: 11.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.1812, allocations: 52.92 kB / 0.6883 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001091/0.1814, allocations: 63.75 kB / 0.6883 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.967e-05/0.1814, allocations: 0 / 0.6883 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.1815, allocations: 57.41 kB / 0.6884 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.919e-05/0.1816, allocations: 43.83 kB / 0.6884 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.1817, allocations: 85.31 kB / 0.6885 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002695/0.182, allocations: 195.2 kB / 0.6887 GB, free: 11.42 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.182, allocations: 0.75 kB / 0.6887 GB, free: 11.42 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.182, allocations: 0 / 0.6887 GB, free: 11.42 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.96e-06/0.182, allocations: 0.5312 kB / 0.6887 GB, free: 11.42 MB / 494.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.0007577/0.1828, allocations: 471.3 kB / 0.6892 GB, free: 10.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1829, allocations: 8.031 kB / 0.6892 GB, free: 10.9 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.409e-05/0.1829, allocations: 34.75 kB / 0.6892 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.024e-05/0.1829, allocations: 16.75 kB / 0.6892 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.1833, allocations: 249.4 kB / 0.6895 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.1833, allocations: 14.09 kB / 0.6895 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.647e-05/0.1833, allocations: 15.86 kB / 0.6895 GB, free: 10.53 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.1835, allocations: 83.38 kB / 0.6896 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1835, allocations: 1.719 kB / 0.6896 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.1835, allocations: 4 kB / 0.6896 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.1836, allocations: 7.938 kB / 0.6896 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.683e-05/0.1837, allocations: 31.98 kB / 0.6896 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.1842, allocations: 354.3 kB / 0.6899 GB, free: 9.996 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.1844, allocations: 68.09 kB / 0.69 GB, free: 9.922 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.66e-05/0.1844, allocations: 33.5 kB / 0.69 GB, free: 9.887 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.1845, allocations: 4.562 kB / 0.69 GB, free: 9.883 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001511/0.1846, allocations: 87.38 kB / 0.6901 GB, free: 9.785 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.1846, allocations: 0 / 0.6901 GB, free: 9.785 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003109/0.1849, allocations: 141.4 kB / 0.6903 GB, free: 9.641 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.185, allocations: 85.09 kB / 0.6903 GB, free: 9.539 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.1853, allocations: 266.8 kB / 0.6906 GB, free: 9.27 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.1853, allocations: 29.7 kB / 0.6906 GB, free: 9.234 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.301e-05/0.1854, allocations: 120.1 kB / 0.6907 GB, free: 9.113 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.1854, allocations: 19.72 kB / 0.6908 GB, free: 9.094 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.1854, allocations: 25.7 kB / 0.6908 GB, free: 9.062 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.159e-05/0.1855, allocations: 326.8 kB / 0.6911 GB, free: 8.734 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.022e-05/0.1856, allocations: 27.98 kB / 0.6911 GB, free: 8.707 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.474e-05/0.1857, allocations: 55.42 kB / 0.6912 GB, free: 8.641 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.1858, allocations: 82.03 kB / 0.6913 GB, free: 8.555 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1858, allocations: 0 / 0.6913 GB, free: 8.555 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001914/0.186, allocations: 121.4 kB / 0.6914 GB, free: 8.43 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.1861, allocations: 4 kB / 0.6914 GB, free: 8.426 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1861, allocations: 4.156 kB / 0.6914 GB, free: 8.422 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.1861, allocations: 0 / 0.6914 GB, free: 8.422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.06e-05/0.1862, allocations: 8 kB / 0.6914 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1862, allocations: 3.984 kB / 0.6914 GB, free: 8.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.351e-05/0.1862, allocations: 23.77 kB / 0.6914 GB, free: 8.387 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.1863, allocations: 4.031 kB / 0.6914 GB, free: 8.383 MB / 494.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.0001196/0.1864, allocations: 145.8 kB / 0.6916 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.1864, allocations: 11.81 kB / 0.6916 GB, free: 8.219 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.218e-05/0.1865, allocations: 21.39 kB / 0.6916 GB, free: 8.195 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.1865, allocations: 4 kB / 0.6916 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1865, allocations: 0 / 0.6916 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1865, allocations: 3.938 kB / 0.6916 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.1867, allocations: 221.6 kB / 0.6918 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1867, allocations: 4 kB / 0.6918 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.019e-05/0.1867, allocations: 4 kB / 0.6918 GB, free: 7.914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1867, allocations: 0 / 0.6918 GB, free: 7.914 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.1867, allocations: 8 kB / 0.6918 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1867, allocations: 0 / 0.6918 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-06/0.1868, allocations: 0 / 0.6918 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002292/0.187, allocations: 148.8 kB / 0.692 GB, free: 7.742 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.473e-05/0.1871, allocations: 100.9 kB / 0.6921 GB, free: 7.625 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.1871, allocations: 4 kB / 0.6921 GB, free: 7.621 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.135e-05/0.1872, allocations: 8 kB / 0.6921 GB, free: 7.613 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.696e-05/0.1872, allocations: 11.92 kB / 0.6921 GB, free: 7.602 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.907e-06/0.1872, allocations: 0 / 0.6921 GB, free: 7.602 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.1874, allocations: 192.6 kB / 0.6923 GB, free: 7.414 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1874, allocations: 0 / 0.6923 GB, free: 7.414 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002452/0.1876, allocations: 31.98 kB / 0.6923 GB, free: 7.383 MB / 494.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.001471/0.1891, allocations: 1.001 MB / 0.6933 GB, free: 6.516 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000239/0.1894, allocations: 79.84 kB / 0.6933 GB, free: 6.438 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1894, allocations: 0 / 0.6933 GB, free: 6.438 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.094e-05/0.1895, allocations: 39.97 kB / 0.6934 GB, free: 6.398 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.1898, allocations: 41.28 kB / 0.6934 GB, free: 6.359 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.1922, allocations: 1.977 MB / 0.6954 GB, free: 4.297 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1926, allocations: 0.7204 MB / 0.6961 GB, free: 3.551 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.181e-05/0.1926, allocations: 29.7 kB / 0.6961 GB, free: 3.523 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.892e-05/0.1927, allocations: 43.42 kB / 0.6961 GB, free: 3.48 MB / 494.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1927, allocations: 0 / 0.6961 GB, free: 3.48 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01661/0.2094, allocations: 4.024 MB / 0.7001 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.2096, allocations: 251.3 kB / 0.7003 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/1.974, allocations: 1.75 kB / 0.7003 GB, free: 15.38 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_BooleanReplicator.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1)