Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.646/1.646, allocations: 285.4 MB / 298 MB, free: 5.957 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.00105/0.00105, allocations: 176.9 kB / 366.4 MB, free: 2.074 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.686/1.686, allocations: 205.1 MB / 0.6248 GB, free: 7.734 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.0008723/0.0008724, allocations: 98.31 kB / 0.738 GB, free: 40.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.103e-05/6.14e-05, allocations: 4 kB / 0.8584 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9208/0.9209, allocations: 115.3 MB / 0.971 GB, free: 77.98 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2323/1.153, allocations: 138.5 MB / 1.106 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/1.154, allocations: 79.14 kB / 1.106 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.007494/1.161, allocations: 2.475 MB / 1.109 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.993e-06/1.161, allocations: 0.75 kB / 1.109 GB, free: 10.75 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.074e-05/1.161, allocations: 4 kB / 1.109 GB, free: 10.75 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.0006277/1.162, allocations: 436 kB / 1.109 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/1.162, allocations: 8.031 kB / 1.109 GB, free: 10.27 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.097e-05/1.162, allocations: 38.56 kB / 1.109 GB, free: 10.22 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.238e-05/1.162, allocations: 17.78 kB / 1.109 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001554/1.162, allocations: 182.8 kB / 1.109 GB, free: 9.984 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/1.162, allocations: 4 kB / 1.109 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.397e-05/1.162, allocations: 12 kB / 1.109 GB, free: 9.969 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/1.162, allocations: 75.23 kB / 1.11 GB, free: 9.891 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/1.162, allocations: 0 / 1.11 GB, free: 9.891 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/1.162, allocations: 4 kB / 1.11 GB, free: 9.887 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/1.162, allocations: 1.5 kB / 1.11 GB, free: 9.887 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/1.163, allocations: 39.98 kB / 1.11 GB, free: 9.848 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006674/1.163, allocations: 380.6 kB / 1.11 GB, free: 9.426 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001868/1.163, allocations: 70.69 kB / 1.11 GB, free: 9.348 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.747e-05/1.164, allocations: 40.86 kB / 1.11 GB, free: 9.305 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.027e-05/1.164, allocations: 192 / 1.11 GB, free: 9.305 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001917/1.164, allocations: 103.1 kB / 1.11 GB, free: 9.191 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.312e-06/1.164, allocations: 0 / 1.11 GB, free: 9.191 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.0002824/1.164, allocations: 109.6 kB / 1.11 GB, free: 9.078 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/1.164, allocations: 55.36 kB / 1.11 GB, free: 9.012 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/1.164, allocations: 123.2 kB / 1.11 GB, free: 8.887 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/1.164, allocations: 33.7 kB / 1.11 GB, free: 8.848 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/1.164, allocations: 96.05 kB / 1.111 GB, free: 8.75 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/1.164, allocations: 31.62 kB / 1.111 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.865e-05/1.164, allocations: 9.875 kB / 1.111 GB, free: 8.711 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001531/1.165, allocations: 326.8 kB / 1.111 GB, free: 8.383 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/1.165, allocations: 55.94 kB / 1.111 GB, free: 8.328 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/1.165, allocations: 88.28 kB / 1.111 GB, free: 8.227 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001327/1.165, allocations: 77.67 kB / 1.111 GB, free: 8.145 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/1.165, allocations: 0 / 1.111 GB, free: 8.145 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003645/1.165, allocations: 209.2 kB / 1.111 GB, free: 7.93 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/1.165, allocations: 37.7 kB / 1.111 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/1.165, allocations: 8.125 kB / 1.111 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/1.165, allocations: 0 / 1.111 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/1.166, allocations: 30.09 kB / 1.111 GB, free: 7.852 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/1.166, allocations: 3.953 kB / 1.111 GB, free: 7.848 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/1.166, allocations: 67.8 kB / 1.111 GB, free: 7.781 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/1.166, allocations: 11.98 kB / 1.111 GB, free: 7.77 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 9.369e-05/1.166, allocations: 113 kB / 1.112 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/1.166, allocations: 7.906 kB / 1.112 GB, free: 7.645 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002444/1.166, allocations: 122.2 kB / 1.112 GB, free: 7.516 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/1.166, allocations: 8 kB / 1.112 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.166, allocations: 3.984 kB / 1.112 GB, free: 7.504 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/1.166, allocations: 3.953 kB / 1.112 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004319/1.167, allocations: 396.3 kB / 1.112 GB, free: 7.059 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.167, allocations: 0 / 1.112 GB, free: 7.059 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/1.167, allocations: 27.92 kB / 1.112 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/1.167, allocations: 4 kB / 1.112 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/1.167, allocations: 3.984 kB / 1.112 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.178e-06/1.167, allocations: 7.953 kB / 1.112 GB, free: 7.016 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.167, allocations: 3.938 kB / 1.112 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002426/1.167, allocations: 206.5 kB / 1.112 GB, free: 6.797 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.604e-05/1.167, allocations: 84.95 kB / 1.112 GB, free: 6.695 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/1.167, allocations: 11.67 kB / 1.112 GB, free: 6.688 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/1.168, allocations: 23.98 kB / 1.112 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.575e-05/1.168, allocations: 15.92 kB / 1.112 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/1.168, allocations: 8 kB / 1.112 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.735e-05/1.168, allocations: 100.8 kB / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.31e-07/1.168, allocations: 0 / 1.113 GB, free: 6.543 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002616/1.168, allocations: 39.91 kB / 1.113 GB, free: 6.504 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.0005946/1.169, allocations: 0.7514 MB / 1.113 GB, free: 5.727 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003313/1.169, allocations: 195.2 kB / 1.114 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/1.169, allocations: 0 / 1.114 GB, free: 5.523 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.381e-05/1.169, allocations: 41.78 kB / 1.114 GB, free: 5.484 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/1.169, allocations: 25.73 kB / 1.114 GB, free: 5.461 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004967/1.17, allocations: 173.4 kB / 1.114 GB, free: 5.258 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/1.17, allocations: 0.7004 MB / 1.114 GB, free: 4.531 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.46e-05/1.17, allocations: 8.547 kB / 1.114 GB, free: 4.523 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.758e-05/1.17, allocations: 31.42 kB / 1.114 GB, free: 4.492 MB / 0.7136 GB Notification: Performance of SimCode: time 6.01e-07/1.17, allocations: 4 kB / 1.114 GB, free: 4.488 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01436/1.185, allocations: 2.742 MB / 1.117 GB, free: 1.965 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/1.185, allocations: 171.7 kB / 1.117 GB, free: 1.742 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/2.822, allocations: 0 / 1.117 GB, free: 1.742 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)