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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7255/0.7255, allocations: 141.8 MB / 149.1 MB, free: 2.277 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 183.7 kB / 181.9 MB, free: 14.24 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.3 MB / 436 MB, free: 7.242 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009824/0.0009824, allocations: 98.45 kB / 0.507 GB, free: 24.52 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001752/0.001752, allocations: 281.8 kB / 0.5884 GB, free: 10.47 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1656/0.1674, allocations: 89.65 MB / 0.676 GB, free: 0.7422 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.5017, allocations: 82.76 MB / 0.7568 GB, free: 111.1 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1109/0.6127, allocations: 112.3 MB / 0.8664 GB, free: 14.7 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.613, allocations: 87.88 kB / 0.8665 GB, free: 14.62 MB / 0.5419 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.01559/0.6286, allocations: 5.609 MB / 0.872 GB, free: 8.988 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.6286, allocations: 8.875 kB / 0.872 GB, free: 8.98 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.469e-05/0.6287, allocations: 15.81 kB / 0.872 GB, free: 8.965 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004028/0.6291, allocations: 252.2 kB / 0.8723 GB, free: 8.676 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.6291, allocations: 0.625 kB / 0.8723 GB, free: 8.676 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.6291, allocations: 5.125 kB / 0.8723 GB, free: 8.672 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000108/0.6293, allocations: 36.55 kB / 0.8723 GB, free: 8.637 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/0.6294, allocations: 84.05 kB / 0.8724 GB, free: 8.543 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.6294, allocations: 4.797 kB / 0.8724 GB, free: 8.539 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.6294, allocations: 0 / 0.8724 GB, free: 8.539 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.6295, allocations: 4.875 kB / 0.8724 GB, free: 8.535 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005659/0.63, allocations: 338.9 kB / 0.8727 GB, free: 8.168 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.6302, allocations: 72 kB / 0.8728 GB, free: 8.09 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.019e-05/0.6302, allocations: 34.05 kB / 0.8728 GB, free: 8.055 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.6303, allocations: 0 / 0.8728 GB, free: 8.055 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000102/0.6304, allocations: 82.11 kB / 0.8729 GB, free: 7.965 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=10): time 1.283e-06/0.6304, allocations: 0 / 0.8729 GB, free: 7.965 MB / 0.5419 GB Notification: Performance of matching and sorting (n=10): time 0.0002404/0.6306, allocations: 101.5 kB / 0.873 GB, free: 7.859 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.6307, allocations: 86.36 kB / 0.8731 GB, free: 7.758 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.6309, allocations: 229.7 kB / 0.8733 GB, free: 7.523 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.6309, allocations: 30.27 kB / 0.8733 GB, free: 7.488 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 5.039e-05/0.631, allocations: 101.5 kB / 0.8734 GB, free: 7.387 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.631, allocations: 27.72 kB / 0.8735 GB, free: 7.359 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-06/0.631, allocations: 0 / 0.8735 GB, free: 7.359 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.6312, allocations: 332 kB / 0.8738 GB, free: 7.027 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.303e-05/0.6312, allocations: 27.98 kB / 0.8738 GB, free: 7 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.509e-05/0.6313, allocations: 58.3 kB / 0.8739 GB, free: 6.934 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.221e-05/0.6314, allocations: 37.11 kB / 0.8739 GB, free: 6.898 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6314, allocations: 0.5 kB / 0.8739 GB, free: 6.898 MB / 0.5419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000191/0.6316, allocations: 114 kB / 0.874 GB, free: 6.781 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.6316, allocations: 14.88 kB / 0.874 GB, free: 6.77 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.6316, allocations: 0 / 0.874 GB, free: 6.77 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.6316, allocations: 0 / 0.874 GB, free: 6.77 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.077e-05/0.6317, allocations: 8 kB / 0.874 GB, free: 6.762 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.6317, allocations: 10.17 kB / 0.874 GB, free: 6.754 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.157e-05/0.6318, allocations: 7.906 kB / 0.874 GB, free: 6.746 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.6318, allocations: 0 / 0.874 GB, free: 6.746 MB / 0.5419 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.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete 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 8.844e-05/0.6319, allocations: 114 kB / 0.8741 GB, free: 6.629 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.659e-05/0.632, allocations: 15.81 kB / 0.8742 GB, free: 6.613 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002361/0.6322, allocations: 123.6 kB / 0.8743 GB, free: 6.484 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.6322, allocations: 3.984 kB / 0.8743 GB, free: 6.48 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.6322, allocations: 0 / 0.8743 GB, free: 6.48 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.6322, allocations: 3.906 kB / 0.8743 GB, free: 6.477 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001919/0.6324, allocations: 210.1 kB / 0.8745 GB, free: 6.234 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6325, allocations: 0 / 0.8745 GB, free: 6.234 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.951e-05/0.6325, allocations: 4 kB / 0.8745 GB, free: 6.23 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.6325, allocations: 0 / 0.8745 GB, free: 6.23 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.6325, allocations: 4 kB / 0.8745 GB, free: 6.227 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.6325, allocations: 0 / 0.8745 GB, free: 6.227 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.6325, allocations: 0 / 0.8745 GB, free: 6.227 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001974/0.6327, allocations: 150.4 kB / 0.8746 GB, free: 6.062 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002877/0.633, allocations: 0.509 MB / 0.8751 GB, free: 5.531 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-05/0.6331, allocations: 104.9 kB / 0.8752 GB, free: 5.41 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.6331, allocations: 0 / 0.8752 GB, free: 5.41 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.752e-05/0.6332, allocations: 11.98 kB / 0.8752 GB, free: 5.398 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.3e-05/0.6333, allocations: 4 kB / 0.8753 GB, free: 5.395 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.6333, allocations: 0 / 0.8753 GB, free: 5.395 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0001888/0.6335, allocations: 184.6 kB / 0.8754 GB, free: 5.215 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0008317/0.6343, allocations: 47.83 kB / 0.8755 GB, free: 5.168 MB / 0.5419 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.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0006311/0.6349, allocations: 332.1 kB / 0.8758 GB, free: 4.945 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0001647/0.6351, allocations: 75.91 kB / 0.8759 GB, free: 4.871 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.6351, allocations: 0 / 0.8759 GB, free: 4.871 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 6.419e-05/0.6352, allocations: 35.94 kB / 0.8759 GB, free: 4.836 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.6354, allocations: 31.97 kB / 0.8759 GB, free: 4.805 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004437/0.6359, allocations: 217.3 kB / 0.8761 GB, free: 4.57 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.6362, allocations: 0.7548 MB / 0.8769 GB, free: 3.789 MB / 0.5419 GB Notification: Performance of SimCode: time 2.7e-07/0.6363, allocations: 0 / 0.8769 GB, free: 3.789 MB / 0.5419 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/linux/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)