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.667/1.667, allocations: 289.7 MB / 302.3 MB, free: 2.176 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.001204/0.001204, allocations: 187.8 kB / 371.6 MB, free: 3.371 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.867/1.867, allocations: 205.1 MB / 0.6309 GB, free: 11.76 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.0009608/0.0009608, allocations: 91.44 kB / 0.745 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.866e-05/3.87e-05, allocations: 4 kB / 0.8664 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3, allocations: 116.3 MB / 0.9799 GB, free: 10.49 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8951/1.195, allocations: 139.5 MB / 1.116 GB, free: 44.36 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/1.195, allocations: 69.89 kB / 1.116 GB, free: 44.33 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.00683/1.202, allocations: 2.475 MB / 1.119 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.376e-06/1.202, allocations: 7.328 kB / 1.119 GB, free: 42.86 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 9.087e-06/1.202, allocations: 4 kB / 1.119 GB, free: 42.86 MB / 0.7448 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.000525/1.203, allocations: 429.3 kB / 1.119 GB, free: 42.42 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/1.203, allocations: 12.03 kB / 1.119 GB, free: 42.41 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.959e-05/1.203, allocations: 39.42 kB / 1.119 GB, free: 42.37 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/1.203, allocations: 18.41 kB / 1.119 GB, free: 42.35 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.605e-05/1.203, allocations: 170.9 kB / 1.119 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/1.203, allocations: 7.266 kB / 1.119 GB, free: 42.14 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/1.203, allocations: 15.84 kB / 1.119 GB, free: 42.13 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/1.203, allocations: 75.88 kB / 1.119 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/1.203, allocations: 0.9375 kB / 1.119 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/1.203, allocations: 3.984 kB / 1.119 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/1.203, allocations: 4 kB / 1.119 GB, free: 42.07 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.992e-05/1.204, allocations: 43.62 kB / 1.119 GB, free: 42.04 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005322/1.204, allocations: 374.1 kB / 1.12 GB, free: 41.73 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/1.204, allocations: 73.78 kB / 1.12 GB, free: 41.67 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.793e-05/1.204, allocations: 40.67 kB / 1.12 GB, free: 41.64 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/1.204, allocations: 0 / 1.12 GB, free: 41.64 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001658/1.204, allocations: 105 kB / 1.12 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/1.205, allocations: 0 / 1.12 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of matching and sorting (n=12): time 0.0002487/1.205, allocations: 109 kB / 1.12 GB, free: 41.47 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/1.205, allocations: 55.36 kB / 1.12 GB, free: 41.4 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.742e-05/1.205, allocations: 112.5 kB / 1.12 GB, free: 41.3 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/1.205, allocations: 40.91 kB / 1.12 GB, free: 41.26 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.353e-05/1.205, allocations: 99.8 kB / 1.12 GB, free: 41.16 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.874e-05/1.205, allocations: 31.5 kB / 1.12 GB, free: 41.14 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/1.205, allocations: 7.688 kB / 1.12 GB, free: 41.14 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.719e-05/1.205, allocations: 322.1 kB / 1.121 GB, free: 40.82 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/1.205, allocations: 54.72 kB / 1.121 GB, free: 40.79 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/1.205, allocations: 91.44 kB / 1.121 GB, free: 40.71 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001115/1.205, allocations: 77.28 kB / 1.121 GB, free: 40.65 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.205, allocations: 0 / 1.121 GB, free: 40.65 MB / 0.7448 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003479/1.206, allocations: 211.4 kB / 1.121 GB, free: 40.48 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/1.206, allocations: 43.83 kB / 1.121 GB, free: 40.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/1.206, allocations: 0 / 1.121 GB, free: 40.44 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/1.206, allocations: 4.125 kB / 1.121 GB, free: 40.44 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/1.206, allocations: 29.84 kB / 1.121 GB, free: 40.42 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/1.206, allocations: 8.812 kB / 1.121 GB, free: 40.41 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/1.206, allocations: 54.7 kB / 1.121 GB, free: 40.37 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.62e-05/1.206, allocations: 14.39 kB / 1.121 GB, free: 40.36 MB / 0.7448 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 8.092e-05/1.206, allocations: 125.6 kB / 1.121 GB, free: 40.24 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/1.206, allocations: 7.906 kB / 1.121 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002131/1.207, allocations: 121.7 kB / 1.122 GB, free: 40.15 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/1.207, allocations: 0 / 1.122 GB, free: 40.15 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/1.207, allocations: 4 kB / 1.122 GB, free: 40.14 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/1.207, allocations: 7.281 kB / 1.122 GB, free: 40.14 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003616/1.207, allocations: 396.9 kB / 1.122 GB, free: 39.77 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/1.207, allocations: 0 / 1.122 GB, free: 39.77 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/1.207, allocations: 23.41 kB / 1.122 GB, free: 39.75 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/1.207, allocations: 3.938 kB / 1.122 GB, free: 39.75 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/1.207, allocations: 14.86 kB / 1.122 GB, free: 39.74 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/1.207, allocations: 7.891 kB / 1.122 GB, free: 39.73 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/1.207, allocations: 0 / 1.122 GB, free: 39.73 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001929/1.207, allocations: 200.7 kB / 1.122 GB, free: 39.55 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 3.528e-05/1.208, allocations: 96.09 kB / 1.122 GB, free: 39.45 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/1.208, allocations: 0.8125 kB / 1.122 GB, free: 39.45 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/1.208, allocations: 20.22 kB / 1.122 GB, free: 39.43 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.422e-05/1.208, allocations: 25.5 kB / 1.122 GB, free: 39.42 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/1.208, allocations: 3.188 kB / 1.122 GB, free: 39.42 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.073e-05/1.208, allocations: 95.31 kB / 1.122 GB, free: 39.33 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2.6e-07/1.208, allocations: 0 / 1.122 GB, free: 39.33 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002555/1.208, allocations: 35.75 kB / 1.122 GB, free: 39.3 MB / 0.7448 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.0004201/1.209, allocations: 0.762 MB / 1.123 GB, free: 38.55 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002507/1.209, allocations: 188.7 kB / 1.123 GB, free: 38.4 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.209, allocations: 1.312 kB / 1.123 GB, free: 38.4 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 7.452e-05/1.209, allocations: 41.62 kB / 1.123 GB, free: 38.37 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002123/1.209, allocations: 19.91 kB / 1.123 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004406/1.21, allocations: 182.5 kB / 1.124 GB, free: 38.19 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/1.21, allocations: 0.6989 MB / 1.124 GB, free: 37.47 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 5.373e-05/1.21, allocations: 11.84 kB / 1.124 GB, free: 37.46 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.999e-05/1.21, allocations: 25.98 kB / 1.124 GB, free: 37.46 MB / 0.7448 GB Notification: Performance of SimCode: time 4.51e-07/1.21, allocations: 0 / 1.124 GB, free: 37.46 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01469/1.225, allocations: 2.739 MB / 1.127 GB, free: 35.98 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/1.225, allocations: 173.3 kB / 1.127 GB, free: 35.75 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.978, allocations: 1.188 kB / 1.127 GB, free: 35.75 MB / 0.7448 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)