Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.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.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",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.84/1.84, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.001014/0.001014, allocations: 189.2 kB / 487 MB, free: 5.328 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.158/1.158, allocations: 221.3 MB / 0.7819 GB, free: 1.344 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.0008675/0.0008674, allocations: 97.48 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4428/0.4437, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.6366, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5329/1.169, allocations: 149.1 MB / 1.351 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/1.17, allocations: 71.77 kB / 1.351 GB, free: 15.88 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.009892/1.18, allocations: 3.71 MB / 1.355 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/1.18, allocations: 10.03 kB / 1.355 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.406e-05/1.18, allocations: 16.77 kB / 1.355 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002921/1.18, allocations: 234.8 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/1.18, allocations: 8.594 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.585e-05/1.18, allocations: 9.906 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001612/1.18, allocations: 72.36 kB / 1.355 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/1.18, allocations: 106.1 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/1.18, allocations: 0.6094 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/1.181, allocations: 4.812 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/1.181, allocations: 3.969 kB / 1.355 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007665/1.181, allocations: 490.4 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/1.182, allocations: 113.2 kB / 1.356 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/1.182, allocations: 60.77 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/1.182, allocations: 2.906 kB / 1.356 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001445/1.182, allocations: 106.3 kB / 1.356 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=19): time 1.252e-06/1.182, allocations: 0 / 1.356 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of matching and sorting (n=19): time 0.0002762/1.182, allocations: 126.9 kB / 1.356 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/1.182, allocations: 61.16 kB / 1.356 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.404e-05/1.182, allocations: 132.1 kB / 1.356 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/1.182, allocations: 26.58 kB / 1.356 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.027e-05/1.182, allocations: 106.5 kB / 1.356 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.844e-05/1.182, allocations: 63.41 kB / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.787e-06/1.182, allocations: 0 / 1.356 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.598e-05/1.183, allocations: 323.2 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.101e-05/1.183, allocations: 47 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/1.183, allocations: 77.53 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.348e-05/1.183, allocations: 51.72 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/1.183, allocations: 3.938 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002441/1.183, allocations: 163.1 kB / 1.357 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/1.183, allocations: 5.531 kB / 1.357 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/1.183, allocations: 4.734 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/1.183, allocations: 1.781 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/1.183, allocations: 52.52 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/1.183, allocations: 1.781 kB / 1.357 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001548/1.184, allocations: 28.08 kB / 1.357 GB, free: 13.9 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/1.184, allocations: 9.031 kB / 1.357 GB, free: 13.89 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: 3 ($whenCondition1,$PRE.lesThr.lesHys.y,lesThr.lesHys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 6.127e-05/1.184, allocations: 115.3 kB / 1.357 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.157e-05/1.184, allocations: 15.45 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/1.184, allocations: 149.4 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/1.184, allocations: 2.438 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.184, allocations: 0.7031 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/1.184, allocations: 5.641 kB / 1.357 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005982/1.185, allocations: 0.5092 MB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/1.185, allocations: 2.406 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002026/1.185, allocations: 35.94 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/1.185, allocations: 3 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/1.185, allocations: 7.953 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/1.185, allocations: 3.172 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.185, allocations: 9.344 kB / 1.358 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003643/1.185, allocations: 404.4 kB / 1.358 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004655/1.186, allocations: 0.815 MB / 1.359 GB, free: 12.41 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.902e-05/1.186, allocations: 95.84 kB / 1.359 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/1.186, allocations: 3.547 kB / 1.359 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001772/1.186, allocations: 17.16 kB / 1.359 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.899e-05/1.186, allocations: 24.58 kB / 1.359 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/1.186, allocations: 6.844 kB / 1.359 GB, free: 12.31 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.719e-05/1.186, allocations: 103.2 kB / 1.359 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008149/1.187, allocations: 32.3 kB / 1.359 GB, free: 12.23 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0001303/1.187, allocations: 113.1 kB / 1.359 GB, free: 12.13 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002181/1.187, allocations: 124.2 kB / 1.36 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/1.187, allocations: 0 / 1.36 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001113/1.187, allocations: 76.47 kB / 1.36 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/1.188, allocations: 15.72 kB / 1.36 GB, free: 12.11 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004659/1.188, allocations: 270 kB / 1.36 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002192/1.188, allocations: 0.757 MB / 1.361 GB, free: 11.23 MB / 0.8073 GB Notification: Performance of SimCode: time 2.51e-07/1.188, allocations: 0.9688 kB / 1.361 GB, free: 11.23 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1)