Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_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.001144/0.001144, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001371/0.001371, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.037/1.037, allocations: 143.4 MB / 434.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003337/0.0003337, allocations: 15.98 kB / 0.5161 GB, free: 11.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1771, allocations: 83.42 MB / 0.5975 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator): time 0.002008/0.1791, allocations: 1.465 MB / 0.599 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.1806, allocations: 0.937 MB / 0.5999 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.1807, allocations: 0 / 0.5999 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006462/0.1814, allocations: 143.7 kB / 0.6 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002825/0.1817, allocations: 95.69 kB / 0.6001 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.1821, allocations: 143.1 kB / 0.6003 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.1823, allocations: 151.6 kB / 0.6004 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.245e-05/0.1824, allocations: 17.11 kB / 0.6004 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.1826, allocations: 59.7 kB / 0.6005 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1827, allocations: 75.67 kB / 0.6005 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.1827, allocations: 0 / 0.6005 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.1828, allocations: 47.92 kB / 0.6006 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.841e-05/0.1829, allocations: 35.91 kB / 0.6006 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.901e-05/0.183, allocations: 45.64 kB / 0.6007 GB, free: 4.484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001925/0.1832, allocations: 144 kB / 0.6008 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.1832, allocations: 0 / 0.6008 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.81e-07/0.1832, allocations: 0 / 0.6008 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.429e-06/0.1832, allocations: 0 / 0.6008 GB, free: 4.344 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.0006864/0.1839, allocations: 488.1 kB / 0.6013 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1839, allocations: 12.02 kB / 0.6013 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.158e-05/0.184, allocations: 38.56 kB / 0.6013 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.184, allocations: 11.81 kB / 0.6013 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.1843, allocations: 235.7 kB / 0.6016 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.1844, allocations: 12 kB / 0.6016 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.1844, allocations: 7.984 kB / 0.6016 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.1846, allocations: 87.31 kB / 0.6017 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1846, allocations: 0 / 0.6017 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.1846, allocations: 4 kB / 0.6017 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.1846, allocations: 11.98 kB / 0.6017 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.607e-05/0.1847, allocations: 27.98 kB / 0.6017 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004759/0.1852, allocations: 352.6 kB / 0.602 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.1854, allocations: 74.66 kB / 0.6021 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.718e-05/0.1855, allocations: 44.78 kB / 0.6021 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.1855, allocations: 0 / 0.6021 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000155/0.1857, allocations: 87.31 kB / 0.6022 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.1857, allocations: 0 / 0.6022 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0003412/0.186, allocations: 141.4 kB / 0.6024 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.1861, allocations: 85.09 kB / 0.6024 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.1864, allocations: 271.6 kB / 0.6027 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.1864, allocations: 25.81 kB / 0.6027 GB, free: 2.137 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.082e-05/0.1865, allocations: 120.1 kB / 0.6028 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.1865, allocations: 23.66 kB / 0.6029 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.688e-06/0.1865, allocations: 0 / 0.6029 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.1866, allocations: 334.8 kB / 0.6032 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.985e-05/0.1867, allocations: 23.98 kB / 0.6032 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.823e-05/0.1868, allocations: 59.42 kB / 0.6033 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.901e-05/0.1869, allocations: 35.92 kB / 0.6033 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1869, allocations: 0 / 0.6033 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002012/0.1871, allocations: 113.4 kB / 0.6034 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.1871, allocations: 8 kB / 0.6034 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1871, allocations: 384 / 0.6034 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1871, allocations: 0 / 0.6034 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.857e-05/0.1872, allocations: 8 kB / 0.6034 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.1872, allocations: 12.02 kB / 0.6034 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.722e-05/0.1873, allocations: 7.938 kB / 0.6034 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1873, allocations: 3.984 kB / 0.6034 GB, free: 1.371 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 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.y,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.1874, allocations: 141.8 kB / 0.6036 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.1874, allocations: 15.81 kB / 0.6036 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.945e-05/0.1875, allocations: 13.41 kB / 0.6036 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.1875, allocations: 7.984 kB / 0.6036 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.1875, allocations: 4 kB / 0.6036 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1875, allocations: 3.953 kB / 0.6036 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.1877, allocations: 233.4 kB / 0.6038 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.1877, allocations: 3.938 kB / 0.6039 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.243e-05/0.1877, allocations: 4 kB / 0.6039 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1877, allocations: 0 / 0.6039 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.1878, allocations: 0 / 0.6039 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1878, allocations: 0 / 0.6039 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1878, allocations: 0 / 0.6039 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002277/0.188, allocations: 152.8 kB / 0.604 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.1881, allocations: 104.8 kB / 0.6041 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.1881, allocations: 4 kB / 0.6041 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.979e-05/0.1882, allocations: 4 kB / 0.6041 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.337e-05/0.1882, allocations: 7.984 kB / 0.6041 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.1882, allocations: 0 / 0.6041 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000176/0.1884, allocations: 188.6 kB / 0.6043 GB, free: 408 kB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1884, allocations: 0 / 0.6043 GB, free: 408 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000236/0.1886, allocations: 35.98 kB / 0.6043 GB, free: 372 kB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3036/0.4923, allocations: 0.9892 MB / 0.6053 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004236/0.4928, allocations: 75.12 kB / 0.6054 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.4928, allocations: 0.75 kB / 0.6054 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.4929, allocations: 36.89 kB / 0.6054 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.4934, allocations: 38.02 kB / 0.6054 GB, free: 40.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.4956, allocations: 0.9765 MB / 0.6064 GB, free: 40.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003196/0.496, allocations: 0.7255 MB / 0.6071 GB, free: 39.42 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001467/0.4961, allocations: 25.69 kB / 0.6071 GB, free: 39.42 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.4963, allocations: 45.95 kB / 0.6072 GB, free: 39.41 MB / 0.4981 GB Notification: Performance of SimCode: time 9.72e-07/0.4963, allocations: 0 / 0.6072 GB, free: 39.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01534/0.5116, allocations: 3.99 MB / 0.6111 GB, free: 39.08 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.5118, allocations: 229.3 kB / 0.6113 GB, free: 38.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.799/2.311, allocations: 3.938 kB / 0.6113 GB, free: 38.84 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_BooleanReplicator.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) Environment - environmentSimulation: