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.591/1.591, allocations: 285.6 MB / 293.1 MB, free: 10.19 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.001023/0.001023, allocations: 172.9 kB / 361.4 MB, free: 6.828 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.897/1.897, allocations: 205.2 MB / 0.62 GB, free: 11.64 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.001096/0.001096, allocations: 98.25 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.973e-05/4.965e-05, allocations: 8 kB / 0.8519 GB, free: 2.617 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.431/1.431, allocations: 115.3 MB / 0.9645 GB, free: 78.86 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3176/1.749, allocations: 137.9 MB / 1.099 GB, free: 1.934 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/1.75, allocations: 73.03 kB / 1.099 GB, free: 1.863 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.008427/1.758, allocations: 2.467 MB / 1.102 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.676e-06/1.758, allocations: 4 kB / 1.102 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.329e-05/1.758, allocations: 0 / 1.102 GB, free: 15.46 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.000828/1.759, allocations: 434.2 kB / 1.102 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 7.675e-05/1.759, allocations: 12.03 kB / 1.102 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.075e-05/1.759, allocations: 12.94 kB / 1.102 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/1.759, allocations: 179.7 kB / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.575e-05/1.759, allocations: 0 / 1.102 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.81e-05/1.759, allocations: 12 kB / 1.102 GB, free: 14.73 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001637/1.76, allocations: 39.94 kB / 1.102 GB, free: 14.7 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/1.76, allocations: 69.66 kB / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/1.76, allocations: 3.25 kB / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/1.76, allocations: 0 / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/1.76, allocations: 0 / 1.102 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007742/1.761, allocations: 353.2 kB / 1.103 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001639/1.761, allocations: 62.7 kB / 1.103 GB, free: 14.17 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.09e-05/1.761, allocations: 32.84 kB / 1.103 GB, free: 14.13 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/1.761, allocations: 1.078 kB / 1.103 GB, free: 14.13 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/1.761, allocations: 104 kB / 1.103 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/1.761, allocations: 0 / 1.103 GB, free: 14.02 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12): time 0.000327/1.762, allocations: 101.6 kB / 1.103 GB, free: 13.91 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/1.762, allocations: 55.41 kB / 1.103 GB, free: 13.85 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/1.762, allocations: 111.1 kB / 1.103 GB, free: 13.73 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/1.762, allocations: 29.7 kB / 1.103 GB, free: 13.7 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.587e-05/1.762, allocations: 100 kB / 1.103 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/1.762, allocations: 25.06 kB / 1.103 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.793e-05/1.762, allocations: 8 kB / 1.103 GB, free: 13.57 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001775/1.762, allocations: 326.8 kB / 1.104 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.972e-05/1.762, allocations: 44 kB / 1.104 GB, free: 13.2 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001478/1.762, allocations: 89.08 kB / 1.104 GB, free: 13.09 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/1.763, allocations: 59.89 kB / 1.104 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/1.763, allocations: 0 / 1.104 GB, free: 13.04 MB / 0.7136 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004294/1.763, allocations: 178.5 kB / 1.104 GB, free: 12.86 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.493e-05/1.763, allocations: 37.7 kB / 1.104 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/1.763, allocations: 0 / 1.104 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.486e-05/1.763, allocations: 4 kB / 1.104 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/1.763, allocations: 32.03 kB / 1.104 GB, free: 12.78 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/1.763, allocations: 4 kB / 1.104 GB, free: 12.77 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/1.764, allocations: 51.86 kB / 1.104 GB, free: 12.72 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/1.764, allocations: 19.95 kB / 1.104 GB, free: 12.7 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.0001319/1.764, allocations: 119.8 kB / 1.104 GB, free: 12.58 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001701/1.764, allocations: 103.5 kB / 1.104 GB, free: 12.48 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.836e-05/1.764, allocations: 11.89 kB / 1.104 GB, free: 12.46 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002216/1.764, allocations: 110.3 kB / 1.104 GB, free: 12.35 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/1.764, allocations: 0 / 1.104 GB, free: 12.35 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/1.764, allocations: 3.953 kB / 1.104 GB, free: 12.35 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/1.764, allocations: 0 / 1.104 GB, free: 12.35 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000446/1.765, allocations: 371 kB / 1.105 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/1.765, allocations: 0 / 1.105 GB, free: 11.94 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/1.765, allocations: 19.98 kB / 1.105 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/1.765, allocations: 4 kB / 1.105 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/1.765, allocations: 3.984 kB / 1.105 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/1.765, allocations: 4.766 kB / 1.105 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.765, allocations: 4 kB / 1.105 GB, free: 11.91 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002547/1.765, allocations: 204.3 kB / 1.105 GB, free: 11.69 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.442e-05/1.765, allocations: 88.95 kB / 1.105 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/1.765, allocations: 0 / 1.105 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/1.766, allocations: 19.97 kB / 1.105 GB, free: 11.57 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.113e-05/1.766, allocations: 24.98 kB / 1.105 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/1.766, allocations: 4 kB / 1.105 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 7.227e-05/1.766, allocations: 100 kB / 1.105 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.6e-07/1.766, allocations: 0 / 1.105 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002987/1.766, allocations: 31.91 kB / 1.105 GB, free: 11.41 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.0007268/1.767, allocations: 0.755 MB / 1.106 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003461/1.767, allocations: 175.3 kB / 1.106 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/1.767, allocations: 0 / 1.106 GB, free: 10.45 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 8.532e-05/1.767, allocations: 36 kB / 1.106 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/1.768, allocations: 17.25 kB / 1.106 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/1.768, allocations: 168.4 kB / 1.106 GB, free: 10.2 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/1.769, allocations: 0.7043 MB / 1.107 GB, free: 9.465 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 6.116e-05/1.769, allocations: 12.48 kB / 1.107 GB, free: 9.453 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.454e-05/1.769, allocations: 27.44 kB / 1.107 GB, free: 9.426 MB / 0.7136 GB Notification: Performance of SimCode: time 2.41e-07/1.769, allocations: 0 / 1.107 GB, free: 9.426 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/1.795, allocations: 2.345 MB / 1.109 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003605/1.796, allocations: 159.2 kB / 1.11 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.24/4.036, allocations: 0 / 1.11 GB, free: 6.973 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)