Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Validation.LimPIDReset.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.Controls.Continuous.Validation.LimPIDReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Validation_LimPIDReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Validation.LimPIDReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Validation_LimPIDReset",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.7308/0.7308, allocations: 141.8 MB / 149.1 MB, free: 3.691 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.001176/0.001176, allocations: 195.8 kB / 181.9 MB, free: 15.45 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 221.3 MB / 436 MB, free: 8.652 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.00122/0.00122, allocations: 92.56 kB / 0.507 GB, free: 24.19 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00183/0.00183, allocations: 284.8 kB / 0.5884 GB, free: 11.66 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1699/0.1718, allocations: 89.63 MB / 0.676 GB, free: 1.941 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.5184, allocations: 82.76 MB / 0.7568 GB, free: 112.2 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.6374, allocations: 116.2 MB / 0.8703 GB, free: 11.88 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.6378, allocations: 84.69 kB / 0.8703 GB, free: 11.8 MB / 0.5419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.05732/0.6951, allocations: 20.49 MB / 0.8904 GB, free: 7.285 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.6951, allocations: 8 kB / 0.8904 GB, free: 7.277 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003679/0.6955, allocations: 126.4 kB / 0.8905 GB, free: 7.152 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001749/0.6973, allocations: 0.723 MB / 0.8912 GB, free: 6.387 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.434e-05/0.6974, allocations: 63.69 kB / 0.8912 GB, free: 6.32 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.6975, allocations: 47.91 kB / 0.8913 GB, free: 6.273 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009622/0.6985, allocations: 451.9 kB / 0.8917 GB, free: 5.832 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.6995, allocations: 0.6261 MB / 0.8923 GB, free: 5.156 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.6996, allocations: 0 / 0.8923 GB, free: 5.156 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.6996, allocations: 0.9375 kB / 0.8923 GB, free: 5.156 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.6997, allocations: 16 kB / 0.8924 GB, free: 5.141 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003971/0.7036, allocations: 2.206 MB / 0.8945 GB, free: 2.875 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.7048, allocations: 0.5488 MB / 0.895 GB, free: 2.32 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.7052, allocations: 202.4 kB / 0.8952 GB, free: 2.121 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.331e-05/0.7053, allocations: 12.5 kB / 0.8952 GB, free: 2.105 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004536/0.7057, allocations: 277.5 kB / 0.8955 GB, free: 1.824 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=60): time 2.636e-05/0.7058, allocations: 0 / 0.8955 GB, free: 1.824 MB / 0.5575 GB Notification: Performance of matching and sorting (n=60): time 0.001004/0.7068, allocations: 487.9 kB / 0.896 GB, free: 1.336 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.321e-05/0.7069, allocations: 141 kB / 0.8961 GB, free: 1.168 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007567/0.7076, allocations: 0.5445 MB / 0.8966 GB, free: 0.6172 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 5.923e-05/0.7077, allocations: 25.7 kB / 0.8967 GB, free: 0.5859 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.7079, allocations: 308.1 kB / 0.897 GB, free: 288 kB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.7081, allocations: 193 kB / 0.8971 GB, free: 92 kB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.918e-05/0.7082, allocations: 0 / 0.8971 GB, free: 92 kB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001763/0.7083, allocations: 334 kB / 0.8975 GB, free: 15.76 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.7086, allocations: 169.2 kB / 0.8976 GB, free: 15.59 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004012/0.7091, allocations: 289.7 kB / 0.8979 GB, free: 15.27 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.7094, allocations: 199.1 kB / 0.8981 GB, free: 15.08 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.7094, allocations: 0 / 0.8981 GB, free: 15.08 MB / 0.5732 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00101/0.7104, allocations: 0.5588 MB / 0.8986 GB, free: 14.52 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003637/0.7108, allocations: 0.8827 MB / 0.8995 GB, free: 13.57 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.7108, allocations: 0 / 0.8995 GB, free: 13.57 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.172e-05/0.7109, allocations: 8 kB / 0.8995 GB, free: 13.56 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009721/0.7118, allocations: 163.8 kB / 0.8997 GB, free: 13.4 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.7119, allocations: 8 kB / 0.8997 GB, free: 13.39 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005902/0.7125, allocations: 67.59 kB / 0.8997 GB, free: 13.33 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.7125, allocations: 16 kB / 0.8998 GB, free: 13.31 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 6.542e-06/0.7125, allocations: 4 kB / 0.8998 GB, free: 13.31 MB / 0.5732 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007788/0.7133, allocations: 454.1 kB / 0.9002 GB, free: 12.86 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.7133, allocations: 7.906 kB / 0.9002 GB, free: 12.86 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.7134, allocations: 7.984 kB / 0.9002 GB, free: 12.85 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008701/0.7142, allocations: 156 kB / 0.9004 GB, free: 12.7 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.7143, allocations: 11.98 kB / 0.9004 GB, free: 12.68 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000548/0.7148, allocations: 51.56 kB / 0.9004 GB, free: 12.63 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.7149, allocations: 25.59 kB / 0.9004 GB, free: 12.61 MB / 0.5732 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.trigger.pulseStart,trigger.pulseStart,limPIDInp.trigger,limPIDOri.I.local_reset,limPIDDef.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.000163/0.715, allocations: 120.7 kB / 0.9006 GB, free: 12.48 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.7152, allocations: 90.88 kB / 0.9006 GB, free: 12.39 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.7154, allocations: 88.55 kB / 0.9007 GB, free: 12.3 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.7154, allocations: 8 kB / 0.9007 GB, free: 12.3 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.7154, allocations: 0 / 0.9007 GB, free: 12.3 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.7155, allocations: 3.984 kB / 0.9007 GB, free: 12.29 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.7175, allocations: 1.319 MB / 0.902 GB, free: 10.93 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.7175, allocations: 0 / 0.902 GB, free: 10.93 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006873/0.7182, allocations: 119.8 kB / 0.9021 GB, free: 10.81 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.723e-06/0.7182, allocations: 0 / 0.9021 GB, free: 10.81 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.835e-05/0.7183, allocations: 12 kB / 0.9021 GB, free: 10.8 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.7183, allocations: 3.906 kB / 0.9022 GB, free: 10.8 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.7183, allocations: 3.984 kB / 0.9022 GB, free: 10.79 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001222/0.7195, allocations: 0.8597 MB / 0.903 GB, free: 9.914 MB / 0.5732 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00176/0.7213, allocations: 1.524 MB / 0.9045 GB, free: 8.367 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003572/0.7217, allocations: 227.8 kB / 0.9047 GB, free: 8.125 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.7218, allocations: 6.656 kB / 0.9047 GB, free: 8.121 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006157/0.7225, allocations: 47.95 kB / 0.9048 GB, free: 8.074 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.36e-05/0.7226, allocations: 32.44 kB / 0.9048 GB, free: 8.043 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.778e-05/0.7226, allocations: 16 kB / 0.9048 GB, free: 8.027 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.000585/0.7232, allocations: 439.1 kB / 0.9052 GB, free: 7.605 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.002063/0.7253, allocations: 270.7 kB / 0.9055 GB, free: 7.34 MB / 0.5732 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPIDPar.I.y,limPIDPar.D.x,limPIDDef.I.y,limPIDDef.D.x,limPIDInp.I.y,limPIDInp.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 4 (limPIDInp.trigger,$whenCondition2,$whenCondition1,trigger.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001872/0.7255, allocations: 107.2 kB / 0.9056 GB, free: 7.227 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.001325/0.7268, allocations: 0.7512 MB / 0.9063 GB, free: 6.48 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.7268, allocations: 256 / 0.9063 GB, free: 6.48 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0003844/0.7272, allocations: 245.8 kB / 0.9065 GB, free: 6.238 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.7283, allocations: 201.5 kB / 0.9067 GB, free: 6.047 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002958/0.7313, allocations: 1.165 MB / 0.9079 GB, free: 4.848 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009832/0.7323, allocations: 1.1 MB / 0.909 GB, free: 3.719 MB / 0.5732 GB Notification: Performance of SimCode: time 5.71e-07/0.7323, allocations: 0 / 0.909 GB, free: 3.719 MB / 0.5732 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Validation.LimPIDReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Validation.LimPIDReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Validation.LimPIDReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Validation.LimPIDReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Validation_LimPIDReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Validation_LimPIDReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Validation.LimPIDReset.pipe 2>&1)