Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0.0/package.mo): time 2.613/2.613, allocations: 284.9 MB / 292.4 MB, free: 10.54 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.001404/0.001404, allocations: 184.9 kB / 360.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.2 MB / 0.6191 GB, free: 12.2 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.001116/0.001115, allocations: 95.05 kB / 0.7321 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.293e-05, allocations: 8 kB / 0.8509 GB, free: 3.309 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8198/0.8198, allocations: 115.3 MB / 0.9634 GB, free: 78.5 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2399/1.06, allocations: 137.7 MB / 1.098 GB, free: 2.707 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/1.06, allocations: 70.77 kB / 1.098 GB, free: 2.641 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01194/1.072, allocations: 2.464 MB / 1.1 GB, free: 244 kB / 0.698 GB Notification: Performance of FrontEnd: time 1.573e-06/1.072, allocations: 0 / 1.1 GB, free: 244 kB / 0.698 GB Notification: Performance of Transformations before backend: time 8.256e-06/1.072, allocations: 1.812 kB / 1.1 GB, free: 244 kB / 0.698 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.0008161/1.073, allocations: 443.1 kB / 1.101 GB, free: 15.76 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/1.073, allocations: 8.031 kB / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/1.073, allocations: 13.11 kB / 1.101 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/1.073, allocations: 182.3 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/1.073, allocations: 4 kB / 1.101 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/1.073, allocations: 8 kB / 1.101 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001768/1.074, allocations: 33 kB / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/1.074, allocations: 69.66 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/1.074, allocations: 2.594 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/1.074, allocations: 7.922 kB / 1.101 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/1.074, allocations: 4 kB / 1.101 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007477/1.075, allocations: 341.3 kB / 1.101 GB, free: 15.02 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001869/1.075, allocations: 71.94 kB / 1.102 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/1.075, allocations: 28.86 kB / 1.102 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.898e-05/1.075, allocations: 4 kB / 1.102 GB, free: 14.91 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/1.075, allocations: 95.22 kB / 1.102 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 2.595e-06/1.075, allocations: 0 / 1.102 GB, free: 14.8 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0003482/1.076, allocations: 113.5 kB / 1.102 GB, free: 14.69 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/1.076, allocations: 51.41 kB / 1.102 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/1.076, allocations: 113.7 kB / 1.102 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/1.076, allocations: 25.7 kB / 1.102 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.985e-05/1.076, allocations: 104 kB / 1.102 GB, free: 14.38 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.653e-05/1.076, allocations: 27.64 kB / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/1.076, allocations: 0 / 1.102 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001304/1.076, allocations: 330.8 kB / 1.102 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/1.076, allocations: 53.58 kB / 1.102 GB, free: 13.96 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002015/1.077, allocations: 82.17 kB / 1.103 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000335/1.077, allocations: 58.03 kB / 1.103 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.077, allocations: 0 / 1.103 GB, free: 13.82 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006506/1.078, allocations: 181.5 kB / 1.103 GB, free: 13.63 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.393e-05/1.078, allocations: 37.7 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/1.078, allocations: 6.5 kB / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/1.078, allocations: 0 / 1.103 GB, free: 13.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002489/1.078, allocations: 32.09 kB / 1.103 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/1.078, allocations: 0 / 1.103 GB, free: 13.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004618/1.078, allocations: 59.81 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/1.078, allocations: 15.98 kB / 1.103 GB, free: 13.48 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.0001269/1.079, allocations: 116.7 kB / 1.103 GB, free: 13.36 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002716/1.079, allocations: 97.58 kB / 1.103 GB, free: 13.26 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/1.079, allocations: 7.906 kB / 1.103 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003098/1.079, allocations: 120.7 kB / 1.103 GB, free: 13.13 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/1.079, allocations: 7.953 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.079, allocations: 3.656 kB / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.079, allocations: 0 / 1.103 GB, free: 13.12 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005748/1.08, allocations: 371.6 kB / 1.104 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.08, allocations: 0 / 1.104 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/1.08, allocations: 19.98 kB / 1.104 GB, free: 12.7 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.336e-06/1.08, allocations: 3.984 kB / 1.104 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.722e-05/1.08, allocations: 3.953 kB / 1.104 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/1.08, allocations: 0 / 1.104 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/1.08, allocations: 4 kB / 1.104 GB, free: 12.68 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/1.081, allocations: 199.4 kB / 1.104 GB, free: 12.47 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.577e-05/1.081, allocations: 94.16 kB / 1.104 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/1.081, allocations: 0 / 1.104 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/1.081, allocations: 23.92 kB / 1.104 GB, free: 12.34 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.758e-05/1.081, allocations: 23.91 kB / 1.104 GB, free: 12.32 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/1.081, allocations: 8 kB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.499e-05/1.081, allocations: 95.89 kB / 1.104 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.91e-07/1.081, allocations: 0 / 1.104 GB, free: 12.22 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004119/1.082, allocations: 35.91 kB / 1.104 GB, free: 12.18 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.0006913/1.082, allocations: 0.7319 MB / 1.105 GB, free: 11.42 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004883/1.083, allocations: 186.3 kB / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.083, allocations: 0 / 1.105 GB, free: 11.23 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001384/1.083, allocations: 39.94 kB / 1.105 GB, free: 11.19 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/1.083, allocations: 18.12 kB / 1.105 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000693/1.084, allocations: 164.5 kB / 1.105 GB, free: 10.98 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/1.084, allocations: 0.7043 MB / 1.106 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 9.048e-05/1.084, allocations: 12.55 kB / 1.106 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/1.084, allocations: 27.42 kB / 1.106 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of SimCode: time 1.022e-06/1.085, allocations: 7.875 kB / 1.106 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04013/1.125, allocations: 2.34 MB / 1.108 GB, free: 7.949 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003413/1.125, allocations: 152.6 kB / 1.108 GB, free: 7.754 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.324/3.449, allocations: 0 / 1.108 GB, free: 7.754 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)