Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.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.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains",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.801/1.801, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0009351/0.0009354, allocations: 189.2 kB / 490.8 MB, free: 1.93 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.137/1.137, allocations: 221.3 MB / 0.7863 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008345/0.0008345, allocations: 89.3 kB / 0.9264 GB, free: 14.32 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.4656/0.4665, allocations: 149.1 MB / 1.072 GB, free: 164.6 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.6895, allocations: 143 MB / 1.212 GB, free: 21.85 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5535/1.243, allocations: 153.3 MB / 1.361 GB, free: 15.66 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001727/1.243, allocations: 63.47 kB / 1.361 GB, free: 15.63 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.04437/1.288, allocations: 17.57 MB / 1.379 GB, free: 0.6875 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/1.288, allocations: 19.92 kB / 1.379 GB, free: 0.668 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/1.288, allocations: 102.9 kB / 1.379 GB, free: 0.5664 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/1.289, allocations: 0.5992 MB / 1.379 GB, free: 32 kB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/1.289, allocations: 24 kB / 1.379 GB, free: 8 kB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/1.289, allocations: 59.86 kB / 1.379 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006472/1.29, allocations: 393 kB / 1.38 GB, free: 15.72 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007805/1.29, allocations: 0.526 MB / 1.38 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/1.291, allocations: 0 / 1.38 GB, free: 15.33 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.303e-05/1.291, allocations: 7.984 kB / 1.38 GB, free: 15.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/1.291, allocations: 20 kB / 1.38 GB, free: 15.3 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002749/1.293, allocations: 2.095 MB / 1.382 GB, free: 13.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/1.294, allocations: 424.3 kB / 1.383 GB, free: 13.4 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/1.294, allocations: 244.4 kB / 1.383 GB, free: 13.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.503e-05/1.294, allocations: 16.47 kB / 1.383 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003826/1.295, allocations: 280.6 kB / 1.383 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 3.006e-06/1.295, allocations: 0 / 1.383 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.0007589/1.296, allocations: 482.1 kB / 1.384 GB, free: 12.66 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/1.296, allocations: 111.5 kB / 1.384 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004106/1.296, allocations: 407.9 kB / 1.384 GB, free: 12.22 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.022e-05/1.296, allocations: 45.31 kB / 1.384 GB, free: 12.17 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/1.296, allocations: 272.4 kB / 1.385 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001231/1.296, allocations: 192.2 kB / 1.385 GB, free: 11.77 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.696e-05/1.297, allocations: 8 kB / 1.385 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001318/1.297, allocations: 376.8 kB / 1.385 GB, free: 11.41 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004627/1.297, allocations: 281.5 kB / 1.385 GB, free: 11.25 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005428/1.298, allocations: 437.1 kB / 1.386 GB, free: 10.91 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009096/1.299, allocations: 346.4 kB / 1.386 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.299, allocations: 0 / 1.386 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001672/1.3, allocations: 0.8544 MB / 1.387 GB, free: 10.04 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002998/1.301, allocations: 1.046 MB / 1.388 GB, free: 8.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/1.301, allocations: 4 kB / 1.388 GB, free: 8.926 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/1.301, allocations: 8 kB / 1.388 GB, free: 8.918 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004435/1.301, allocations: 111.1 kB / 1.388 GB, free: 8.816 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/1.301, allocations: 7.984 kB / 1.388 GB, free: 8.809 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/1.302, allocations: 275.3 kB / 1.388 GB, free: 8.539 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.502e-05/1.302, allocations: 42.98 kB / 1.388 GB, free: 8.504 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.623e-06/1.302, allocations: 11.98 kB / 1.388 GB, free: 8.492 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001557/1.304, allocations: 0.7448 MB / 1.389 GB, free: 7.969 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/1.304, allocations: 4 kB / 1.389 GB, free: 7.965 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.382e-06/1.304, allocations: 4 kB / 1.389 GB, free: 7.961 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000371/1.304, allocations: 99.7 kB / 1.389 GB, free: 7.867 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/1.304, allocations: 7.984 kB / 1.389 GB, free: 7.859 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/1.305, allocations: 255.5 kB / 1.389 GB, free: 7.609 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-05/1.305, allocations: 46.84 kB / 1.389 GB, free: 7.57 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition11,$PRE.resSig.y,resSig.y,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.k.booPul.y,k.booPul.y,$PRE.Ti.booPul.y,Ti.booPul.y,$PRE.Td.booPul.y,Td.booPul.y,$PRE.lesThr.lesHys.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 5 * 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.0001535/1.306, allocations: 137.2 kB / 1.39 GB, free: 7.438 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.53e-05/1.306, allocations: 63.23 kB / 1.39 GB, free: 7.375 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007477/1.306, allocations: 488 kB / 1.39 GB, free: 7.031 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/1.306, allocations: 8 kB / 1.39 GB, free: 7.023 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/1.306, allocations: 0 / 1.39 GB, free: 7.023 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/1.306, allocations: 3.984 kB / 1.39 GB, free: 7.02 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/1.308, allocations: 1.229 MB / 1.391 GB, free: 6.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.308, allocations: 4 kB / 1.391 GB, free: 6.066 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004073/1.308, allocations: 95.83 kB / 1.391 GB, free: 5.977 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/1.308, allocations: 4 kB / 1.391 GB, free: 5.973 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/1.308, allocations: 11.92 kB / 1.391 GB, free: 5.961 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/1.308, allocations: 4 kB / 1.391 GB, free: 5.957 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.308, allocations: 4.094 kB / 1.391 GB, free: 5.953 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001003/1.309, allocations: 0.8532 MB / 1.392 GB, free: 5.293 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001361/1.311, allocations: 1.487 MB / 1.394 GB, free: 4.113 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.697e-05/1.311, allocations: 144 kB / 1.394 GB, free: 3.957 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.768e-05/1.311, allocations: 11.62 kB / 1.394 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003546/1.311, allocations: 43.95 kB / 1.394 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.388e-05/1.311, allocations: 51.44 kB / 1.394 GB, free: 3.863 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.051e-05/1.312, allocations: 26.86 kB / 1.394 GB, free: 3.844 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.000267/1.312, allocations: 296.3 kB / 1.394 GB, free: 3.629 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001818/1.314, allocations: 320.7 kB / 1.395 GB, free: 3.32 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (PIDWitInpGai.I.y,PIDWitInpGai.D.x,PID.I.y,PID.D.x) * Number of discrete variables: 20 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,resSig.y,k.booPul.y,Ti.booPul.y,Td.booPul.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 2 (PIDWitInpGai.greThrkTd.greHys.y,lesThr.lesHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001924/1.314, allocations: 142 kB / 1.395 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00166/1.315, allocations: 1.325 MB / 1.396 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/1.315, allocations: 4 kB / 1.396 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003288/1.316, allocations: 257 kB / 1.396 GB, free: 2.004 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006676/1.317, allocations: 121.1 kB / 1.396 GB, free: 1.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/1.318, allocations: 0.9104 MB / 1.397 GB, free: 1.074 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005999/1.319, allocations: 1.016 MB / 1.398 GB, free: 40 kB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.319, allocations: 0 / 1.398 GB, free: 40 kB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.fmu > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1)