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.001663/0.001669, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002026/0.002026, allocations: 193.2 kB / 16.14 MB, free: 6.668 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.321/1.321, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001974/0.001974, allocations: 281.8 kB / 290.2 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9066/0.9066, allocations: 169.2 MB / 0.4977 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 90.52 kB / 0.5946 GB, free: 28.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1789, allocations: 86.98 MB / 0.6795 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.BooleanReplicator): time 0.003088/0.182, allocations: 1.829 MB / 0.6813 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.1836, allocations: 1.018 MB / 0.6823 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.118e-05/0.1837, allocations: 0 / 0.6823 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005661/0.1842, allocations: 155.6 kB / 0.6825 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002186/0.1845, allocations: 102.4 kB / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003658/0.1848, allocations: 162.6 kB / 0.6827 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.185, allocations: 159.6 kB / 0.6829 GB, free: 13.65 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.1852, allocations: 29.36 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.086e-05/0.1853, allocations: 51.77 kB / 0.6829 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.579e-05/0.1854, allocations: 71.69 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.1854, allocations: 4 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.1855, allocations: 51.97 kB / 0.6831 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.605e-05/0.1856, allocations: 47.77 kB / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.113e-05/0.1857, allocations: 55.61 kB / 0.6832 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.1859, allocations: 191.3 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1859, allocations: 4 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1859, allocations: 4 kB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.186, allocations: 0 / 0.6834 GB, free: 13.15 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.0006699/0.1866, allocations: 492.3 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1867, allocations: 12.03 kB / 0.6838 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.227e-05/0.1867, allocations: 30.75 kB / 0.6839 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.07e-05/0.1868, allocations: 20.75 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.1871, allocations: 257.4 kB / 0.6841 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1871, allocations: 4.375 kB / 0.6841 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.1871, allocations: 15.88 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.1873, allocations: 83.38 kB / 0.6842 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1873, allocations: 3.938 kB / 0.6842 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.1873, allocations: 4 kB / 0.6842 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.1873, allocations: 4 kB / 0.6842 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.647e-05/0.1875, allocations: 35.98 kB / 0.6843 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.188, allocations: 352.7 kB / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.1882, allocations: 74.61 kB / 0.6847 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.642e-05/0.1882, allocations: 32.84 kB / 0.6847 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.1883, allocations: 4 kB / 0.6847 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/0.1884, allocations: 79.39 kB / 0.6848 GB, free: 11.49 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 3.176e-06/0.1884, allocations: 3.984 kB / 0.6848 GB, free: 11.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003343/0.1888, allocations: 149.4 kB / 0.6849 GB, free: 11.34 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.1888, allocations: 81.11 kB / 0.685 GB, free: 11.24 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.1891, allocations: 258.9 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.1891, allocations: 37.7 kB / 0.6853 GB, free: 10.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.104e-05/0.1892, allocations: 120 kB / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.1892, allocations: 23.7 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.202e-05/0.1893, allocations: 25.72 kB / 0.6855 GB, free: 10.76 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1894, allocations: 330.8 kB / 0.6858 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.09e-05/0.1895, allocations: 27.94 kB / 0.6858 GB, free: 10.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.09e-05/0.1896, allocations: 55.69 kB / 0.6859 GB, free: 10.33 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.1897, allocations: 77.77 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1897, allocations: 0 / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002026/0.1899, allocations: 117.5 kB / 0.686 GB, free: 10.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1899, allocations: 8 kB / 0.6861 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1899, allocations: 0 / 0.6861 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.19, allocations: 3.938 kB / 0.6861 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.619e-05/0.19, allocations: 11.98 kB / 0.6861 GB, free: 10.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.1901, allocations: 8.031 kB / 0.6861 GB, free: 10.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.058e-05/0.1901, allocations: 19.86 kB / 0.6861 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.1901, allocations: 0 / 0.6861 GB, free: 10.08 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.0001205/0.1903, allocations: 141.8 kB / 0.6862 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.1903, allocations: 15.81 kB / 0.6862 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.613e-05/0.1903, allocations: 17.39 kB / 0.6863 GB, free: 9.895 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.1904, allocations: 4 kB / 0.6863 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1904, allocations: 0 / 0.6863 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.1904, allocations: 7.938 kB / 0.6863 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.1906, allocations: 217.5 kB / 0.6865 GB, free: 9.621 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1906, allocations: 4 kB / 0.6865 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.262e-05/0.1906, allocations: 7.922 kB / 0.6865 GB, free: 9.609 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1906, allocations: 8 kB / 0.6865 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.1906, allocations: 4 kB / 0.6865 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1906, allocations: 0 / 0.6865 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1906, allocations: 0 / 0.6865 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.1909, allocations: 148.8 kB / 0.6866 GB, free: 9.434 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.1909, allocations: 92.92 kB / 0.6867 GB, free: 9.324 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.191, allocations: 4 kB / 0.6867 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.818e-05/0.191, allocations: 4 kB / 0.6867 GB, free: 9.316 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.072e-05/0.1911, allocations: 11.86 kB / 0.6868 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.1911, allocations: 7.984 kB / 0.6868 GB, free: 9.297 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001705/0.1913, allocations: 188.6 kB / 0.6869 GB, free: 9.113 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1913, allocations: 0 / 0.6869 GB, free: 9.113 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.1915, allocations: 35.98 kB / 0.687 GB, free: 9.078 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.001328/0.1928, allocations: 1.005 MB / 0.688 GB, free: 8.207 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001984/0.193, allocations: 67.97 kB / 0.688 GB, free: 8.141 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1931, allocations: 0 / 0.688 GB, free: 8.141 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.63e-05/0.1931, allocations: 39.98 kB / 0.6881 GB, free: 8.102 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.1934, allocations: 45.22 kB / 0.6881 GB, free: 8.059 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/0.1955, allocations: 1.965 MB / 0.69 GB, free: 6.008 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.1958, allocations: 0.7281 MB / 0.6907 GB, free: 5.254 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.466e-05/0.1958, allocations: 29.7 kB / 0.6908 GB, free: 5.227 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.286e-05/0.1959, allocations: 47.36 kB / 0.6908 GB, free: 5.18 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1959, allocations: 0 / 0.6908 GB, free: 5.18 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01452/0.2104, allocations: 4.231 MB / 0.6949 GB, free: 1.105 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002294/0.2107, allocations: 258.1 kB / 0.6952 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/1.881, allocations: 3.938 kB / 0.6952 GB, free: 0.8438 MB / 494.1 MB (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)