Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.768/1.768, allocations: 390.4 MB / 397.7 MB, free: 10.69 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009291/0.0009291, allocations: 173.5 kB / 490.8 MB, free: 11.25 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.118/1.118, allocations: 221.4 MB / 0.7863 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008699/0.0008699, allocations: 93.81 kB / 0.9264 GB, free: 4.559 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2454/0.2463, allocations: 149.2 MB / 1.072 GB, free: 15.48 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5215/0.7678, allocations: 143 MB / 1.212 GB, free: 155.7 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1391/0.9069, allocations: 149.9 MB / 1.358 GB, free: 41.76 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.9072, allocations: 73.67 kB / 1.358 GB, free: 41.69 MB / 0.8855 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.009105/0.9163, allocations: 3.712 MB / 1.362 GB, free: 37.98 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.9164, allocations: 13.11 kB / 1.362 GB, free: 37.97 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.496e-05/0.9164, allocations: 19.81 kB / 1.362 GB, free: 37.95 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002809/0.9167, allocations: 231.4 kB / 1.362 GB, free: 37.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.9167, allocations: 4.656 kB / 1.362 GB, free: 37.69 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.981e-05/0.9168, allocations: 12 kB / 1.362 GB, free: 37.68 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001348/0.9169, allocations: 75.17 kB / 1.362 GB, free: 37.61 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001551/0.9171, allocations: 108.2 kB / 1.362 GB, free: 37.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.9171, allocations: 1.375 kB / 1.362 GB, free: 37.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.9171, allocations: 4 kB / 1.362 GB, free: 37.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.9171, allocations: 0 / 1.362 GB, free: 37.5 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006592/0.9178, allocations: 489.7 kB / 1.363 GB, free: 36.98 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.9181, allocations: 112.2 kB / 1.363 GB, free: 36.87 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.047e-05/0.9182, allocations: 73.38 kB / 1.363 GB, free: 36.79 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.9182, allocations: 5.156 kB / 1.363 GB, free: 36.79 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001235/0.9183, allocations: 96.34 kB / 1.363 GB, free: 36.68 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=19): time 1.733e-06/0.9183, allocations: 0 / 1.363 GB, free: 36.68 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19): time 0.0002306/0.9186, allocations: 130.7 kB / 1.363 GB, free: 36.55 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.633e-05/0.9186, allocations: 59.39 kB / 1.363 GB, free: 36.48 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.403e-05/0.9187, allocations: 132.5 kB / 1.363 GB, free: 36.35 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.707e-05/0.9187, allocations: 26.42 kB / 1.363 GB, free: 36.32 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.9187, allocations: 108.9 kB / 1.363 GB, free: 36.21 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.9188, allocations: 63.02 kB / 1.363 GB, free: 36.14 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.346e-06/0.9188, allocations: 1.188 kB / 1.363 GB, free: 36.14 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 4.89e-05/0.9188, allocations: 326.8 kB / 1.364 GB, free: 35.82 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.771e-05/0.9189, allocations: 45.81 kB / 1.364 GB, free: 35.77 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.959e-05/0.919, allocations: 78.56 kB / 1.364 GB, free: 35.69 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.644e-05/0.9191, allocations: 55.41 kB / 1.364 GB, free: 35.64 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.9191, allocations: 0 / 1.364 GB, free: 35.64 MB / 0.8855 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002054/0.9193, allocations: 172.5 kB / 1.364 GB, free: 35.46 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.338e-06/0.9193, allocations: 5.062 kB / 1.364 GB, free: 35.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.9193, allocations: 0 / 1.364 GB, free: 35.46 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.9194, allocations: 4.969 kB / 1.364 GB, free: 35.46 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.9196, allocations: 48.28 kB / 1.364 GB, free: 35.41 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.9196, allocations: 0.625 kB / 1.364 GB, free: 35.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.9197, allocations: 30.11 kB / 1.364 GB, free: 35.39 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.9198, allocations: 7.984 kB / 1.364 GB, free: 35.38 MB / 0.8855 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 5.072e-05/0.9198, allocations: 107 kB / 1.364 GB, free: 35.27 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.825e-05/0.9198, allocations: 15.81 kB / 1.364 GB, free: 35.25 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.9201, allocations: 148 kB / 1.364 GB, free: 35.11 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.9201, allocations: 0 / 1.364 GB, free: 35.11 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.9201, allocations: 8.469 kB / 1.364 GB, free: 35.1 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.9201, allocations: 6.234 kB / 1.364 GB, free: 35.09 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004755/0.9206, allocations: 0.5002 MB / 1.365 GB, free: 34.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.9206, allocations: 0 / 1.365 GB, free: 34.54 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.9208, allocations: 49.5 kB / 1.365 GB, free: 34.49 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.9208, allocations: 4.906 kB / 1.365 GB, free: 34.49 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.9208, allocations: 0 / 1.365 GB, free: 34.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.9208, allocations: 4 kB / 1.365 GB, free: 34.48 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.9208, allocations: 0.5938 kB / 1.365 GB, free: 34.48 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002904/0.9211, allocations: 408.6 kB / 1.365 GB, free: 34.02 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003569/0.9215, allocations: 0.8246 MB / 1.366 GB, free: 33.13 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.9215, allocations: 89.61 kB / 1.366 GB, free: 33.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.9216, allocations: 4 kB / 1.366 GB, free: 33.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001678/0.9217, allocations: 22.42 kB / 1.366 GB, free: 33 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.9218, allocations: 21.22 kB / 1.366 GB, free: 32.98 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.446e-05/0.9218, allocations: 7.984 kB / 1.366 GB, free: 32.98 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.718e-05/0.9218, allocations: 100.1 kB / 1.366 GB, free: 32.88 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000784/0.9226, allocations: 36.55 kB / 1.366 GB, free: 32.84 MB / 0.8855 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.0001354/0.9228, allocations: 109.8 kB / 1.367 GB, free: 32.73 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002221/0.923, allocations: 125 kB / 1.367 GB, free: 32.61 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.923, allocations: 0.7188 kB / 1.367 GB, free: 32.61 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.665e-05/0.9231, allocations: 72.44 kB / 1.367 GB, free: 32.54 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.9233, allocations: 24.56 kB / 1.367 GB, free: 32.52 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004301/0.9238, allocations: 265.1 kB / 1.367 GB, free: 32.21 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.924, allocations: 0.7572 MB / 1.368 GB, free: 31.43 MB / 0.8855 GB Notification: Performance of SimCode: time 2.71e-07/0.924, allocations: 2.156 kB / 1.368 GB, free: 31.43 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1)