Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",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/BuildSysPro 3.5.0/package.mo): time 0.7195/0.7195, allocations: 127.4 MB / 134.6 MB, free: 4.074 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 185.3 kB / 164.4 MB, free: 6.871 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 205.1 MB / 399.1 MB, free: 6.086 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008913/0.0008911, allocations: 79.38 kB / 476.3 MB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2649/0.2658, allocations: 82.89 MB / 0.5461 GB, free: 42.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.428, allocations: 76.74 MB / 0.621 GB, free: 13.83 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4056/0.8336, allocations: 105.8 MB / 0.7243 GB, free: 6.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.8339, allocations: 79.89 kB / 0.7244 GB, free: 6.422 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.01621/0.8501, allocations: 5.476 MB / 0.7297 GB, free: 0.9062 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.8502, allocations: 12 kB / 0.7297 GB, free: 0.8945 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.643e-05/0.8502, allocations: 15.81 kB / 0.7298 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.8507, allocations: 255.7 kB / 0.73 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.8507, allocations: 0 / 0.73 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.8508, allocations: 4 kB / 0.73 GB, free: 0.582 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001152/0.8509, allocations: 35.92 kB / 0.73 GB, free: 0.5469 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.851, allocations: 92.14 kB / 0.7301 GB, free: 452 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.8511, allocations: 3.984 kB / 0.7301 GB, free: 448 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.8511, allocations: 0 / 0.7301 GB, free: 448 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.8511, allocations: 4 kB / 0.7301 GB, free: 444 kB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006182/0.8517, allocations: 349.1 kB / 0.7305 GB, free: 56 kB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000157/0.8519, allocations: 78.69 kB / 0.7305 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.824e-05/0.852, allocations: 32.91 kB / 0.7306 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.852, allocations: 0 / 0.7306 GB, free: 15.93 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.8522, allocations: 75.45 kB / 0.7306 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.873e-06/0.8522, allocations: 0 / 0.7306 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.0002834/0.8525, allocations: 101.5 kB / 0.7307 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.8526, allocations: 118.7 kB / 0.7309 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002835/0.8529, allocations: 233.9 kB / 0.7311 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.8529, allocations: 26.45 kB / 0.7311 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.853, allocations: 96.12 kB / 0.7312 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.968e-05/0.853, allocations: 23.66 kB / 0.7312 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-06/0.853, allocations: 0 / 0.7312 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002008/0.8532, allocations: 334.8 kB / 0.7315 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.776e-05/0.8533, allocations: 20 kB / 0.7316 GB, free: 14.86 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.4e-05/0.8534, allocations: 76.22 kB / 0.7316 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.634e-05/0.8535, allocations: 35.91 kB / 0.7317 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.8535, allocations: 0 / 0.7317 GB, free: 14.73 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002162/0.8537, allocations: 105.5 kB / 0.7318 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.8537, allocations: 4 kB / 0.7318 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.85e-06/0.8537, allocations: 0 / 0.7318 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.8538, allocations: 4 kB / 0.7318 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.8539, allocations: 15.97 kB / 0.7318 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.8539, allocations: 8.125 kB / 0.7318 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.999e-05/0.854, allocations: 7.906 kB / 0.7318 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.854, allocations: 8 kB / 0.7318 GB, free: 14.58 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * 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.913e-05/0.8541, allocations: 109 kB / 0.7319 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.8541, allocations: 15.81 kB / 0.7319 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002416/0.8544, allocations: 119 kB / 0.732 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.8544, allocations: 7.906 kB / 0.732 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.8544, allocations: 4 kB / 0.7321 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.8544, allocations: 0 / 0.7321 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.8546, allocations: 210.1 kB / 0.7323 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.8546, allocations: 0 / 0.7323 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.914e-05/0.8547, allocations: 8 kB / 0.7323 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.8547, allocations: 0 / 0.7323 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.8547, allocations: 7.891 kB / 0.7323 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.8547, allocations: 7.938 kB / 0.7323 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.8547, allocations: 0 / 0.7323 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002207/0.855, allocations: 132.9 kB / 0.7324 GB, free: 13.91 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003395/0.8553, allocations: 0.5169 MB / 0.7329 GB, free: 13.37 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.158e-05/0.8554, allocations: 100.9 kB / 0.733 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.8555, allocations: 4 kB / 0.733 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.814e-05/0.8555, allocations: 4 kB / 0.733 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.755e-05/0.8556, allocations: 7.984 kB / 0.733 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.8556, allocations: 4 kB / 0.733 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.000179/0.8558, allocations: 192.4 kB / 0.7332 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0009298/0.8567, allocations: 51.84 kB / 0.7333 GB, free: 12.99 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.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.0009539/0.8577, allocations: 337.2 kB / 0.7336 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002485/0.858, allocations: 75.91 kB / 0.7336 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.858, allocations: 0 / 0.7336 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 9.877e-05/0.8581, allocations: 43.92 kB / 0.7337 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.8584, allocations: 24.53 kB / 0.7337 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006068/0.859, allocations: 219.8 kB / 0.7339 GB, free: 12.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005223/0.8596, allocations: 0.7548 MB / 0.7347 GB, free: 11.56 MB / 0.4948 GB Notification: Performance of SimCode: time 2.8e-07/0.8596, allocations: 0 / 0.7347 GB, free: 11.56 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)