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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.951/1.951, allocations: 289.9 MB / 297.4 MB, free: 6.383 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.001146/0.001146, allocations: 172.8 kB / 366.7 MB, free: 1.66 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.976/1.976, allocations: 205.2 MB / 0.626 GB, free: 7.152 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.0009461/0.000946, allocations: 95.22 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.292e-05/2.293e-05, allocations: 8 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7284/0.7285, allocations: 116.3 MB / 0.9734 GB, free: 76.18 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2002/0.9287, allocations: 138.9 MB / 1.109 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.929, allocations: 75.94 kB / 1.109 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.007901/0.9369, allocations: 2.462 MB / 1.111 GB, free: 8.77 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.258e-06/0.937, allocations: 5.266 kB / 1.111 GB, free: 8.766 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.937, allocations: 0 / 1.111 GB, free: 8.766 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.0006754/0.9377, allocations: 438.3 kB / 1.112 GB, free: 8.289 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.9378, allocations: 8.562 kB / 1.112 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.248e-05/0.9378, allocations: 11.91 kB / 1.112 GB, free: 8.27 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.938, allocations: 182.1 kB / 1.112 GB, free: 8.055 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.06e-05/0.938, allocations: 9.672 kB / 1.112 GB, free: 8.047 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.9381, allocations: 9.906 kB / 1.112 GB, free: 8.039 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001363/0.9382, allocations: 35.98 kB / 1.112 GB, free: 8.004 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001616/0.9384, allocations: 65.67 kB / 1.112 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.9384, allocations: 0 / 1.112 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.9384, allocations: 0 / 1.112 GB, free: 7.934 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.9385, allocations: 8 kB / 1.112 GB, free: 7.926 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000668/0.9391, allocations: 353.2 kB / 1.113 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001535/0.9393, allocations: 62.69 kB / 1.113 GB, free: 7.473 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.251e-05/0.9394, allocations: 36.86 kB / 1.113 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.9394, allocations: 0 / 1.113 GB, free: 7.434 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.9396, allocations: 96.11 kB / 1.113 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.9396, allocations: 0 / 1.113 GB, free: 7.328 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002747/0.9399, allocations: 108.8 kB / 1.113 GB, free: 7.219 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.9399, allocations: 51.41 kB / 1.113 GB, free: 7.156 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.9401, allocations: 117 kB / 1.113 GB, free: 7.035 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.9401, allocations: 29.7 kB / 1.113 GB, free: 7 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.382e-05/0.9402, allocations: 102.2 kB / 1.113 GB, free: 6.898 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.9402, allocations: 27.64 kB / 1.113 GB, free: 6.871 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.577e-05/0.9402, allocations: 0 / 1.113 GB, free: 6.871 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001653/0.9404, allocations: 326.8 kB / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.9405, allocations: 51.94 kB / 1.113 GB, free: 6.492 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.9407, allocations: 89.31 kB / 1.114 GB, free: 6.391 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.9409, allocations: 49.09 kB / 1.114 GB, free: 6.344 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9409, allocations: 0 / 1.114 GB, free: 6.344 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000404/0.9413, allocations: 173.5 kB / 1.114 GB, free: 6.168 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.817e-05/0.9414, allocations: 41.83 kB / 1.114 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.9414, allocations: 4 kB / 1.114 GB, free: 6.117 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.9414, allocations: 3.984 kB / 1.114 GB, free: 6.113 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/0.9416, allocations: 27.92 kB / 1.114 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.9416, allocations: 0 / 1.114 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.9419, allocations: 62.61 kB / 1.114 GB, free: 6.027 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.9419, allocations: 15.94 kB / 1.114 GB, free: 6.012 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 0.0001087/0.9421, allocations: 112.9 kB / 1.114 GB, free: 5.895 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001581/0.9422, allocations: 105.5 kB / 1.114 GB, free: 5.785 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.512e-05/0.9422, allocations: 7.906 kB / 1.114 GB, free: 5.777 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002186/0.9425, allocations: 110.3 kB / 1.114 GB, free: 5.66 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.9425, allocations: 4 kB / 1.114 GB, free: 5.656 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.9425, allocations: 3.953 kB / 1.114 GB, free: 5.652 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.9425, allocations: 3.984 kB / 1.114 GB, free: 5.648 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.9429, allocations: 369.1 kB / 1.115 GB, free: 5.246 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.9429, allocations: 0 / 1.115 GB, free: 5.246 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.943, allocations: 27.97 kB / 1.115 GB, free: 5.219 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.9431, allocations: 0 / 1.115 GB, free: 5.219 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.9431, allocations: 0 / 1.115 GB, free: 5.219 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.9431, allocations: 11.89 kB / 1.115 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.9431, allocations: 0 / 1.115 GB, free: 5.207 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002127/0.9433, allocations: 195.4 kB / 1.115 GB, free: 5 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.006e-05/0.9434, allocations: 92.94 kB / 1.115 GB, free: 4.891 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.591e-05/0.9434, allocations: 0 / 1.115 GB, free: 4.891 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.9436, allocations: 19.98 kB / 1.115 GB, free: 4.871 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.045e-05/0.9436, allocations: 23.92 kB / 1.115 GB, free: 4.848 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.9437, allocations: 4 kB / 1.115 GB, free: 4.844 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.931e-05/0.9437, allocations: 97.64 kB / 1.115 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9437, allocations: 0 / 1.115 GB, free: 4.75 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002938/0.944, allocations: 36.03 kB / 1.115 GB, free: 4.715 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.0006378/0.9447, allocations: 0.7522 MB / 1.116 GB, free: 3.941 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002974/0.945, allocations: 175.3 kB / 1.116 GB, free: 3.758 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.945, allocations: 0 / 1.116 GB, free: 3.758 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.087e-05/0.9451, allocations: 43.94 kB / 1.116 GB, free: 3.715 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002299/0.9453, allocations: 19.28 kB / 1.116 GB, free: 3.699 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005389/0.9459, allocations: 168.7 kB / 1.116 GB, free: 3.5 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.9462, allocations: 0.7039 MB / 1.117 GB, free: 2.77 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.501e-05/0.9463, allocations: 8.547 kB / 1.117 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.971e-05/0.9463, allocations: 31.42 kB / 1.117 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of SimCode: time 2.51e-07/0.9463, allocations: 0 / 1.117 GB, free: 2.73 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.971, allocations: 2.336 MB / 1.119 GB, free: 484 kB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/0.9713, allocations: 146.8 kB / 1.119 GB, free: 292 kB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.587/2.559, allocations: 0 / 1.119 GB, free: 292 kB / 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)