Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Buildings.Geometries.Examples.RotateRectangle.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.Buildings.Geometries.Examples.RotateRectangle,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Geometries_Examples_RotateRectangle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Buildings.Geometries.Examples.RotateRectangle,fileNamePrefix="BuildingSystems_BuildingSystems_Buildings_Geometries_Examples_RotateRectangle",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.7781/0.7781, allocations: 141.8 MB / 149.1 MB, free: 4.453 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.001802/0.001803, allocations: 189.9 kB / 181.9 MB, free: 112 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.3 MB / 436 MB, free: 9.332 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.0009587/0.0009589, allocations: 97.94 kB / 0.507 GB, free: 24.16 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001819/0.001819, allocations: 276.2 kB / 0.5884 GB, free: 12.31 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1836/0.1855, allocations: 89.63 MB / 0.676 GB, free: 2.594 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4539/0.6394, allocations: 82.76 MB / 0.7568 GB, free: 112.8 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1204/0.7598, allocations: 109.9 MB / 0.8641 GB, free: 2.793 MB / 0.5263 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.7601, allocations: 71.95 kB / 0.8642 GB, free: 2.727 MB / 0.5263 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.01486/0.775, allocations: 5.469 MB / 0.8695 GB, free: 13.26 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.7751, allocations: 9 kB / 0.8695 GB, free: 13.25 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.7752, allocations: 24.94 kB / 0.8696 GB, free: 13.23 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.7754, allocations: 182.9 kB / 0.8697 GB, free: 13.01 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.37e-05/0.7754, allocations: 8 kB / 0.8697 GB, free: 13 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.746e-05/0.7755, allocations: 16 kB / 0.8698 GB, free: 12.98 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001726/0.7772, allocations: 1.056 MB / 0.8708 GB, free: 11.93 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007521/0.778, allocations: 467.5 kB / 0.8712 GB, free: 11.45 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.778, allocations: 0 / 0.8712 GB, free: 11.45 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.392e-05/0.7781, allocations: 0 / 0.8712 GB, free: 11.45 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.7781, allocations: 10.34 kB / 0.8712 GB, free: 11.44 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.7802, allocations: 1.269 MB / 0.8725 GB, free: 10.11 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.7806, allocations: 235.4 kB / 0.8727 GB, free: 9.875 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.7807, allocations: 113.4 kB / 0.8728 GB, free: 9.762 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01111/0.7919, allocations: 5.432 MB / 0.8781 GB, free: 3.637 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.7919, allocations: 38.56 kB / 0.8782 GB, free: 3.59 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=30): time 2.635e-06/0.7919, allocations: 4 kB / 0.8782 GB, free: 3.586 MB / 0.5419 GB Notification: Performance of matching and sorting (n=30): time 0.0008609/0.7928, allocations: 249.9 kB / 0.8784 GB, free: 3.336 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.7929, allocations: 55.41 kB / 0.8785 GB, free: 3.27 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001725/0.793, allocations: 157.2 kB / 0.8786 GB, free: 3.109 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 3.077e-05/0.7931, allocations: 25.7 kB / 0.8786 GB, free: 3.078 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.7932, allocations: 179.6 kB / 0.8788 GB, free: 2.898 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 8.382e-05/0.7933, allocations: 106.5 kB / 0.8789 GB, free: 2.793 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/0.7933, allocations: 0 / 0.8789 GB, free: 2.793 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.7935, allocations: 334.7 kB / 0.8792 GB, free: 2.457 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.7936, allocations: 88.91 kB / 0.8793 GB, free: 2.367 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.7939, allocations: 263.8 kB / 0.8796 GB, free: 2.027 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005468/0.7944, allocations: 163.8 kB / 0.8797 GB, free: 1.867 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.7944, allocations: 4 kB / 0.8797 GB, free: 1.863 MB / 0.5419 GB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009448/0.7954, allocations: 389 kB / 0.8801 GB, free: 1.477 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.7954, allocations: 4 kB / 0.8801 GB, free: 1.473 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.7954, allocations: 8 kB / 0.8801 GB, free: 1.465 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.872e-05/0.7955, allocations: 11.98 kB / 0.8801 GB, free: 1.453 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004404/0.7959, allocations: 128.5 kB / 0.8802 GB, free: 1.328 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.796, allocations: 8 kB / 0.8802 GB, free: 1.32 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.7962, allocations: 50.62 kB / 0.8803 GB, free: 1.273 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.542e-05/0.7963, allocations: 51.98 kB / 0.8803 GB, free: 1.223 MB / 0.5419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * Array equations: 0 * 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.0001348/0.7964, allocations: 116.8 kB / 0.8805 GB, free: 1.102 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.477e-05/0.7965, allocations: 23.7 kB / 0.8805 GB, free: 1.078 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008986/0.7974, allocations: 317.9 kB / 0.8808 GB, free: 0.7617 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.7974, allocations: 7.984 kB / 0.8808 GB, free: 0.7539 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.7975, allocations: 0 / 0.8808 GB, free: 0.7539 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.7975, allocations: 0 / 0.8808 GB, free: 0.7539 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.7978, allocations: 249.9 kB / 0.881 GB, free: 484 kB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.7978, allocations: 0 / 0.881 GB, free: 484 kB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/0.7981, allocations: 83.88 kB / 0.8811 GB, free: 400 kB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.7981, allocations: 0 / 0.8811 GB, free: 400 kB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.7981, allocations: 15.98 kB / 0.8811 GB, free: 384 kB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.7981, allocations: 4 kB / 0.8811 GB, free: 380 kB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.7981, allocations: 0 / 0.8811 GB, free: 380 kB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007392/0.7989, allocations: 359.4 kB / 0.8815 GB, free: 4 kB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00093/0.7998, allocations: 0.7341 MB / 0.8822 GB, free: 15.25 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.458e-05/0.7999, allocations: 96.86 kB / 0.8823 GB, free: 15.14 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.8, allocations: 4 kB / 0.8823 GB, free: 15.13 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.8001, allocations: 4 kB / 0.8823 GB, free: 15.13 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.305e-05/0.8002, allocations: 23.95 kB / 0.8823 GB, free: 15.11 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-05/0.8002, allocations: 43.98 kB / 0.8823 GB, free: 15.06 MB / 0.5575 GB Notification: Performance of sort global known variables: time 9.176e-05/0.8003, allocations: 121.9 kB / 0.8825 GB, free: 14.95 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.001147/0.8015, allocations: 83.78 kB / 0.8825 GB, free: 14.86 MB / 0.5575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0004807/0.802, allocations: 179 kB / 0.8827 GB, free: 14.68 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0005339/0.8025, allocations: 264.6 kB / 0.883 GB, free: 14.42 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.8025, allocations: 0.625 kB / 0.883 GB, free: 14.42 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.8027, allocations: 123.8 kB / 0.8831 GB, free: 14.3 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.8029, allocations: 5.312 kB / 0.8831 GB, free: 14.3 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007592/0.8037, allocations: 324.2 kB / 0.8834 GB, free: 13.96 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008276/0.8045, allocations: 0.8843 MB / 0.8843 GB, free: 13.05 MB / 0.5575 GB Notification: Performance of SimCode: time 3.11e-07/0.8046, allocations: 0 / 0.8843 GB, free: 13.05 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Buildings.Geometries.Examples.RotateRectangle.pipe ; mkfifo BuildingSystems_BuildingSystems.Buildings.Geometries.Examples.RotateRectangle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Buildings.Geometries.Examples.RotateRectangle.pipe >> ../files/BuildingSystems_BuildingSystems.Buildings.Geometries.Examples.RotateRectangle.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Buildings_Geometries_Examples_RotateRectangle_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Buildings_Geometries_Examples_RotateRectangle.fmu > BuildingSystems_BuildingSystems.Buildings.Geometries.Examples.RotateRectangle.pipe 2>&1)