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.639/1.639, allocations: 292.6 MB / 307.5 MB, free: 5.207 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.001211/0.001211, allocations: 195.6 kB / 377.1 MB, free: 1.539 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.559/1.559, allocations: 205.4 MB / 0.6366 GB, free: 8.539 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.001029/0.00103, allocations: 96.88 kB / 0.7509 GB, free: 63.16 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000342/0.0003421, allocations: 12 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2761, allocations: 116.3 MB / 0.9884 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.749/1.025, allocations: 139.6 MB / 1.125 GB, free: 35.17 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000267/1.025, allocations: 73.5 kB / 1.125 GB, free: 35.11 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.007245/1.033, allocations: 2.486 MB / 1.127 GB, free: 33.33 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.296e-06/1.033, allocations: 0 / 1.127 GB, free: 33.33 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.061e-05/1.033, allocations: 0 / 1.127 GB, free: 33.33 MB / 0.7292 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.0005932/1.033, allocations: 451.5 kB / 1.128 GB, free: 32.86 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/1.033, allocations: 16.02 kB / 1.128 GB, free: 32.84 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.607e-05/1.033, allocations: 34.56 kB / 1.128 GB, free: 32.8 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/1.034, allocations: 13.97 kB / 1.128 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/1.034, allocations: 175 kB / 1.128 GB, free: 32.58 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/1.034, allocations: 8 kB / 1.128 GB, free: 32.57 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.054e-05/1.034, allocations: 21.34 kB / 1.128 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/1.034, allocations: 107.3 kB / 1.128 GB, free: 32.46 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/1.034, allocations: 0 / 1.128 GB, free: 32.46 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/1.034, allocations: 0.6562 kB / 1.128 GB, free: 32.46 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/1.034, allocations: 4 kB / 1.128 GB, free: 32.46 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003085/1.034, allocations: 117.8 kB / 1.128 GB, free: 32.37 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005391/1.035, allocations: 386.6 kB / 1.129 GB, free: 32 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002578/1.035, allocations: 103.8 kB / 1.129 GB, free: 31.91 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/1.035, allocations: 0 / 1.129 GB, free: 31.91 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/1.036, allocations: 134.7 kB / 1.129 GB, free: 31.79 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=12): time 4.779e-06/1.036, allocations: 1.078 kB / 1.129 GB, free: 31.79 MB / 0.7292 GB Notification: Performance of matching and sorting (n=12): time 0.0006236/1.036, allocations: 244.2 kB / 1.129 GB, free: 31.58 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/1.036, allocations: 59.41 kB / 1.129 GB, free: 31.51 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.507e-05/1.036, allocations: 120.9 kB / 1.129 GB, free: 31.39 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/1.036, allocations: 33.7 kB / 1.129 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.41e-05/1.036, allocations: 99.47 kB / 1.129 GB, free: 31.26 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/1.036, allocations: 23.56 kB / 1.129 GB, free: 31.24 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.316e-05/1.036, allocations: 4 kB / 1.129 GB, free: 31.23 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.614e-05/1.037, allocations: 322.3 kB / 1.13 GB, free: 30.91 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/1.037, allocations: 93.77 kB / 1.13 GB, free: 30.84 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/1.037, allocations: 121.5 kB / 1.13 GB, free: 30.72 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/1.037, allocations: 116.2 kB / 1.13 GB, free: 30.62 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.037, allocations: 4.844 kB / 1.13 GB, free: 30.61 MB / 0.7292 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000622/1.038, allocations: 277.7 kB / 1.13 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/1.038, allocations: 41.22 kB / 1.13 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/1.038, allocations: 3.938 kB / 1.13 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/1.038, allocations: 4 kB / 1.13 GB, free: 30.31 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/1.038, allocations: 19.61 kB / 1.13 GB, free: 30.3 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/1.038, allocations: 7.953 kB / 1.13 GB, free: 30.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/1.038, allocations: 65.75 kB / 1.13 GB, free: 30.24 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/1.038, allocations: 12.5 kB / 1.13 GB, free: 30.23 MB / 0.7292 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 () * Number of clocked 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.672e-05/1.039, allocations: 131.8 kB / 1.13 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.923e-05/1.039, allocations: 9.656 kB / 1.131 GB, free: 30.09 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004381/1.039, allocations: 194.1 kB / 1.131 GB, free: 29.93 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/1.039, allocations: 0 / 1.131 GB, free: 29.93 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/1.039, allocations: 4 kB / 1.131 GB, free: 29.92 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/1.039, allocations: 3.953 kB / 1.131 GB, free: 29.92 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005532/1.04, allocations: 468.5 kB / 1.131 GB, free: 29.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.04, allocations: 0.5625 kB / 1.131 GB, free: 29.46 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/1.04, allocations: 28.12 kB / 1.131 GB, free: 29.44 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/1.04, allocations: 0 / 1.131 GB, free: 29.44 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/1.04, allocations: 7.938 kB / 1.131 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/1.04, allocations: 3.953 kB / 1.131 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.04, allocations: 0 / 1.131 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004079/1.04, allocations: 276.8 kB / 1.131 GB, free: 29.17 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.492e-05/1.04, allocations: 88.95 kB / 1.132 GB, free: 29.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/1.04, allocations: 8.062 kB / 1.132 GB, free: 29.06 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/1.04, allocations: 19.66 kB / 1.132 GB, free: 29.04 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.664e-05/1.04, allocations: 22.27 kB / 1.132 GB, free: 29.03 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/1.04, allocations: 4 kB / 1.132 GB, free: 29.03 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.834e-05/1.041, allocations: 94.84 kB / 1.132 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.041, allocations: 0 / 1.132 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002787/1.041, allocations: 36.12 kB / 1.132 GB, free: 28.9 MB / 0.7292 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) * Number of clocked states: 0 () * 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.0006612/1.041, allocations: 0.837 MB / 1.133 GB, free: 28.07 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005319/1.042, allocations: 254.5 kB / 1.133 GB, free: 27.84 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/1.042, allocations: 0 / 1.133 GB, free: 27.84 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001891/1.042, allocations: 82.33 kB / 1.133 GB, free: 27.78 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/1.042, allocations: 19 kB / 1.133 GB, free: 27.76 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008521/1.043, allocations: 1.059 MB / 1.134 GB, free: 26.66 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/1.043, allocations: 0.6953 MB / 1.135 GB, free: 25.95 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.101e-05/1.044, allocations: 19.08 kB / 1.135 GB, free: 25.94 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.448e-05/1.044, allocations: 27 kB / 1.135 GB, free: 25.92 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/1.044, allocations: 0 / 1.135 GB, free: 25.92 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/1.059, allocations: 2.699 MB / 1.137 GB, free: 24.46 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001582/1.059, allocations: 181.1 kB / 1.137 GB, free: 24.22 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/2.838, allocations: 0 / 1.137 GB, free: 24.22 MB / 0.7292 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)