Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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) 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.924/1.924, allocations: 387.2 MB / 394.5 MB, free: 13.62 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 173.3 kB / 487 MB, free: 5.34 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 221.3 MB / 0.7819 GB, free: 1.348 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009287/0.0009287, allocations: 109.4 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4962/0.4972, allocations: 148.4 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.7068, allocations: 142.3 MB / 1.205 GB, free: 26.13 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6248/1.332, allocations: 152.9 MB / 1.355 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/1.332, allocations: 79.84 kB / 1.355 GB, free: 15.7 MB / 0.8073 GB 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.01657/1.348, allocations: 5.602 MB / 1.36 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/1.349, allocations: 12.75 kB / 1.36 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.079e-05/1.349, allocations: 15.81 kB / 1.36 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/1.349, allocations: 266.3 kB / 1.36 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/1.349, allocations: 0 / 1.36 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/1.349, allocations: 4.75 kB / 1.36 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.073e-05/1.349, allocations: 30.3 kB / 1.36 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/1.349, allocations: 90.72 kB / 1.361 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/1.349, allocations: 4 kB / 1.361 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/1.349, allocations: 0.5625 kB / 1.361 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/1.349, allocations: 7.938 kB / 1.361 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004439/1.35, allocations: 342.5 kB / 1.361 GB, free: 14.13 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/1.35, allocations: 78.69 kB / 1.361 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.742e-05/1.35, allocations: 33.98 kB / 1.361 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/1.35, allocations: 3.625 kB / 1.361 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.173e-05/1.35, allocations: 78.59 kB / 1.361 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/1.35, allocations: 0 / 1.361 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8): time 0.0002284/1.35, allocations: 101.8 kB / 1.361 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.784e-05/1.35, allocations: 103.9 kB / 1.361 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/1.351, allocations: 239.2 kB / 1.361 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/1.351, allocations: 29.7 kB / 1.362 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/1.351, allocations: 99.98 kB / 1.362 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/1.351, allocations: 17.31 kB / 1.362 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-06/1.351, allocations: 0 / 1.362 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.939e-05/1.351, allocations: 331.5 kB / 1.362 GB, free: 13.12 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.077e-05/1.351, allocations: 23.66 kB / 1.362 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.251e-05/1.351, allocations: 69.34 kB / 1.362 GB, free: 13.05 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.598e-05/1.351, allocations: 39.88 kB / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/1.351, allocations: 0 / 1.362 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001749/1.351, allocations: 110.4 kB / 1.362 GB, free: 12.94 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.849e-06/1.351, allocations: 8.562 kB / 1.362 GB, free: 12.93 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/1.351, allocations: 7.922 kB / 1.362 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/1.351, allocations: 0 / 1.362 GB, free: 12.92 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.993e-05/1.351, allocations: 22.52 kB / 1.362 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/1.351, allocations: 0 / 1.362 GB, free: 12.9 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.176e-05/1.351, allocations: 13.56 kB / 1.362 GB, free: 12.89 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/1.351, allocations: 8 kB / 1.362 GB, free: 12.88 MB / 0.8073 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 5.827e-05/1.351, allocations: 110 kB / 1.362 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.704e-05/1.351, allocations: 20.52 kB / 1.362 GB, free: 12.75 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/1.352, allocations: 115.7 kB / 1.362 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/1.352, allocations: 4 kB / 1.362 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.352, allocations: 0.7969 kB / 1.362 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/1.352, allocations: 0 / 1.362 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/1.352, allocations: 209.4 kB / 1.363 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/1.352, allocations: 0 / 1.363 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.008e-05/1.352, allocations: 9.547 kB / 1.363 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/1.352, allocations: 0.5156 kB / 1.363 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/1.352, allocations: 0.6562 kB / 1.363 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/1.352, allocations: 0.5625 kB / 1.363 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.352, allocations: 0 / 1.363 GB, free: 12.47 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001779/1.352, allocations: 140.6 kB / 1.363 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002075/1.352, allocations: 0.5097 MB / 1.363 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.291e-05/1.352, allocations: 99.69 kB / 1.363 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/1.352, allocations: 4.594 kB / 1.363 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.812e-05/1.353, allocations: 5.453 kB / 1.363 GB, free: 11.73 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.704e-05/1.353, allocations: 10.67 kB / 1.363 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/1.353, allocations: 5.312 kB / 1.363 GB, free: 11.72 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001404/1.353, allocations: 196.9 kB / 1.364 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008761/1.354, allocations: 57.59 kB / 1.364 GB, free: 11.53 MB / 0.8073 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.0006577/1.354, allocations: 322 kB / 1.364 GB, free: 11.31 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002256/1.355, allocations: 79.05 kB / 1.364 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/1.355, allocations: 0 / 1.364 GB, free: 11.26 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.533e-05/1.355, allocations: 35.59 kB / 1.364 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/1.355, allocations: 40.42 kB / 1.364 GB, free: 11.21 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004402/1.355, allocations: 226.2 kB / 1.364 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/1.356, allocations: 0.7422 MB / 1.365 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of SimCode: time 2.71e-07/1.356, allocations: 0 / 1.365 GB, free: 10.27 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)