Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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 8.1.4-maint.8.1.x/package.mo): time 1.371/1.371, allocations: 289.8 MB / 297.1 MB, free: 6.652 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009692/0.0009693, allocations: 181.3 kB / 366.3 MB, free: 2 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.066/1.066, allocations: 205.1 MB / 0.6256 GB, free: 5.824 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008313/0.0008314, allocations: 78.8 kB / 0.7395 GB, free: 39.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2003/0.2012, allocations: 122.4 MB / 0.8591 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4568/0.658, allocations: 116.3 MB / 0.9727 GB, free: 68.22 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.8037, allocations: 138.8 MB / 1.108 GB, free: 9.672 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.804, allocations: 71.95 kB / 1.108 GB, free: 9.602 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.007561/0.8115, allocations: 2.614 MB / 1.111 GB, free: 6.949 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.8116, allocations: 12 kB / 1.111 GB, free: 6.938 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.988e-05/0.8116, allocations: 8.656 kB / 1.111 GB, free: 6.93 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.8118, allocations: 174.9 kB / 1.111 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.421e-05/0.8118, allocations: 0 / 1.111 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.814e-05/0.8118, allocations: 11.94 kB / 1.111 GB, free: 6.707 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001182/0.8119, allocations: 47.98 kB / 1.111 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.8121, allocations: 61.58 kB / 1.111 GB, free: 6.594 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.8121, allocations: 4 kB / 1.111 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.8121, allocations: 0 / 1.111 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.8121, allocations: 0.75 kB / 1.111 GB, free: 6.59 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000504/0.8126, allocations: 361.1 kB / 1.111 GB, free: 6.199 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001227/0.8127, allocations: 62.69 kB / 1.112 GB, free: 6.129 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.677e-05/0.8128, allocations: 32.86 kB / 1.112 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.8128, allocations: 0 / 1.112 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001116/0.813, allocations: 87.36 kB / 1.112 GB, free: 5.996 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.813, allocations: 4 kB / 1.112 GB, free: 5.992 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002163/0.8132, allocations: 99.08 kB / 1.112 GB, free: 5.891 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.8132, allocations: 51.41 kB / 1.112 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.657e-05/0.8133, allocations: 120.6 kB / 1.112 GB, free: 5.707 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.8133, allocations: 25.7 kB / 1.112 GB, free: 5.676 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.8134, allocations: 100 kB / 1.112 GB, free: 5.574 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.8134, allocations: 27.64 kB / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.474e-05/0.8135, allocations: 0 / 1.112 GB, free: 5.547 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.59e-05/0.8136, allocations: 326.8 kB / 1.112 GB, free: 5.219 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.698e-05/0.8137, allocations: 47.98 kB / 1.112 GB, free: 5.172 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.8138, allocations: 80.28 kB / 1.112 GB, free: 5.078 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002094/0.814, allocations: 59.89 kB / 1.113 GB, free: 5.02 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.814, allocations: 4 kB / 1.113 GB, free: 5.016 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003865/0.8144, allocations: 177.4 kB / 1.113 GB, free: 4.836 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.318e-06/0.8144, allocations: 4 kB / 1.113 GB, free: 4.832 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.8144, allocations: 0 / 1.113 GB, free: 4.832 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.8144, allocations: 4 kB / 1.113 GB, free: 4.828 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.8146, allocations: 32.61 kB / 1.113 GB, free: 4.797 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.8146, allocations: 0 / 1.113 GB, free: 4.797 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.8149, allocations: 67.84 kB / 1.113 GB, free: 4.73 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.8149, allocations: 12 kB / 1.113 GB, free: 4.719 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 7.593e-05/0.815, allocations: 105 kB / 1.113 GB, free: 4.609 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.659e-05/0.815, allocations: 11.91 kB / 1.113 GB, free: 4.598 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000189/0.8152, allocations: 107.7 kB / 1.113 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.8152, allocations: 7.891 kB / 1.113 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.8153, allocations: 0 / 1.113 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.8153, allocations: 4 kB / 1.113 GB, free: 4.473 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003256/0.8156, allocations: 362.9 kB / 1.113 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.8156, allocations: 0 / 1.113 GB, free: 4.074 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.8157, allocations: 24.81 kB / 1.113 GB, free: 4.051 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.8158, allocations: 4 kB / 1.113 GB, free: 4.047 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.8158, allocations: 4 kB / 1.113 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.8158, allocations: 0 / 1.113 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.8158, allocations: 2.266 kB / 1.113 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001705/0.816, allocations: 199 kB / 1.114 GB, free: 3.836 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002898/0.8163, allocations: 0.5622 MB / 1.114 GB, free: 3.254 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.381e-05/0.8163, allocations: 92.95 kB / 1.114 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.8163, allocations: 0 / 1.114 GB, free: 3.145 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/0.8165, allocations: 20.83 kB / 1.114 GB, free: 3.125 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.183e-05/0.8166, allocations: 19.88 kB / 1.114 GB, free: 3.105 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.8166, allocations: 11.98 kB / 1.114 GB, free: 3.094 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.315e-05/0.8166, allocations: 91.28 kB / 1.114 GB, free: 3.004 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008609/0.8175, allocations: 40.05 kB / 1.114 GB, free: 2.965 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (triggeredSampler.trigger,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001579/0.8177, allocations: 107.2 kB / 1.115 GB, free: 2.852 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.00024/0.8179, allocations: 137.6 kB / 1.115 GB, free: 2.711 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.8179, allocations: 3.938 kB / 1.115 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 7.322e-05/0.818, allocations: 40 kB / 1.115 GB, free: 2.668 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.8182, allocations: 23.33 kB / 1.115 GB, free: 2.652 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003174/0.8185, allocations: 127.2 kB / 1.115 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.8188, allocations: 0.7191 MB / 1.116 GB, free: 1.758 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.8188, allocations: 0 / 1.116 GB, free: 1.758 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)