Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.461/1.461, allocations: 251.5 MB / 267.4 MB, free: 11.04 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 171.5 kB / 326.5 MB, free: 2.68 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205 MB / 0.5766 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008767/0.0008765, allocations: 93.34 kB / 0.6804 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 10.31 kB / 0.7938 GB, free: 136.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2544, allocations: 105.4 MB / 0.8968 GB, free: 68.13 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001638/0.2561, allocations: 1.261 MB / 0.898 GB, free: 66.86 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004942/0.2566, allocations: 285.7 kB / 0.8983 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.129e-05/0.2566, allocations: 7.938 kB / 0.8983 GB, free: 66.57 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.554e-05/0.2567, allocations: 3.938 kB / 0.8983 GB, free: 66.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 8.983e-05/0.2568, allocations: 7.875 kB / 0.8983 GB, free: 66.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001979/0.257, allocations: 35.95 kB / 0.8983 GB, free: 66.52 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.2571, allocations: 87.77 kB / 0.8984 GB, free: 66.43 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.2572, allocations: 24.44 kB / 0.8984 GB, free: 66.41 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.099e-05/0.2573, allocations: 35.84 kB / 0.8985 GB, free: 66.38 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.139e-05/0.2574, allocations: 39.83 kB / 0.8985 GB, free: 66.34 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.2574, allocations: 4 kB / 0.8985 GB, free: 66.33 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.456e-05/0.2574, allocations: 4 kB / 0.8985 GB, free: 66.33 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.2575, allocations: 15.92 kB / 0.8985 GB, free: 66.31 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.2575, allocations: 31.8 kB / 0.8985 GB, free: 66.28 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.675e-05/0.2576, allocations: 59.84 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.2576, allocations: 4 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.954e-06/0.2576, allocations: 4 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.579e-06/0.2576, allocations: 7.938 kB / 0.8986 GB, free: 66.21 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006039/0.2582, allocations: 403.1 kB / 0.899 GB, free: 65.76 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2583, allocations: 12.03 kB / 0.899 GB, free: 65.75 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.981e-05/0.2583, allocations: 8.844 kB / 0.899 GB, free: 65.74 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.2584, allocations: 184.2 kB / 0.8992 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.2585, allocations: 8.359 kB / 0.8992 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.125e-05/0.2585, allocations: 8.375 kB / 0.8992 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.2588, allocations: 110.2 kB / 0.8993 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2588, allocations: 192 / 0.8993 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.2588, allocations: 11.92 kB / 0.8993 GB, free: 65.38 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2589, allocations: 7.938 kB / 0.8993 GB, free: 65.38 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000312/0.2592, allocations: 115.8 kB / 0.8995 GB, free: 65.26 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005246/0.2597, allocations: 356.6 kB / 0.8998 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004608/0.2602, allocations: 162.5 kB / 0.8999 GB, free: 64.7 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.2604, allocations: 68.75 kB / 0.9 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.2604, allocations: 0 / 0.9 GB, free: 64.62 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/0.2607, allocations: 123.3 kB / 0.9001 GB, free: 64.49 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 2.034e-06/0.2607, allocations: 0 / 0.9001 GB, free: 64.49 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0005814/0.2613, allocations: 229.3 kB / 0.9003 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.2613, allocations: 59.41 kB / 0.9004 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.831e-05/0.2614, allocations: 127.8 kB / 0.9005 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.2614, allocations: 33.7 kB / 0.9006 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.086e-05/0.2615, allocations: 100 kB / 0.9007 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.2615, allocations: 27.64 kB / 0.9007 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.823e-05/0.2615, allocations: 21.7 kB / 0.9007 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.61e-05/0.2616, allocations: 326.8 kB / 0.901 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.2618, allocations: 63.95 kB / 0.9011 GB, free: 63.47 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.262, allocations: 93.92 kB / 0.9012 GB, free: 63.37 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.2623, allocations: 147.3 kB / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2623, allocations: 0 / 0.9013 GB, free: 63.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003757/0.2627, allocations: 193.3 kB / 0.9015 GB, free: 63.02 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.2627, allocations: 8 kB / 0.9015 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2627, allocations: 3.984 kB / 0.9015 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.662e-05/0.2627, allocations: 0 / 0.9015 GB, free: 63.01 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.2628, allocations: 28.08 kB / 0.9015 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.2629, allocations: 4 kB / 0.9015 GB, free: 62.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.263, allocations: 35.81 kB / 0.9016 GB, free: 62.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.263, allocations: 4 kB / 0.9016 GB, free: 62.94 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 13 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.pulseStart,$PRE.booPul1.pulseStart,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.183e-05/0.2631, allocations: 133.7 kB / 0.9017 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.2631, allocations: 7.906 kB / 0.9017 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004124/0.2635, allocations: 178.5 kB / 0.9019 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2636, allocations: 4 kB / 0.9019 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.2636, allocations: 7.875 kB / 0.9019 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2636, allocations: 0 / 0.9019 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005204/0.2641, allocations: 466.4 kB / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2641, allocations: 0 / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.245e-05/0.2642, allocations: 27.92 kB / 0.9024 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2642, allocations: 0 / 0.9024 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.2642, allocations: 4 kB / 0.9024 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.2642, allocations: 3.984 kB / 0.9024 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2642, allocations: 3.938 kB / 0.9024 GB, free: 62.05 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003917/0.2646, allocations: 263.3 kB / 0.9026 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.682e-05/0.2647, allocations: 88.95 kB / 0.9027 GB, free: 61.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.2647, allocations: 11.98 kB / 0.9027 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.2649, allocations: 19.98 kB / 0.9027 GB, free: 61.64 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.485e-05/0.2649, allocations: 27.84 kB / 0.9028 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.265, allocations: 4 kB / 0.9028 GB, free: 61.61 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 4.467e-05/0.265, allocations: 98.02 kB / 0.9029 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/0.265, allocations: 4 kB / 0.9029 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002171/0.2652, allocations: 20 kB / 0.9029 GB, free: 61.49 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (zeroCrossing.y,$whenCondition2,$whenCondition1,booPul1.pulseStart,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 (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000134/0.2654, allocations: 111.2 kB / 0.903 GB, free: 61.37 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003908/0.2658, allocations: 151.8 kB / 0.9031 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.2658, allocations: 0 / 0.9031 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.266, allocations: 80.12 kB / 0.9032 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.2663, allocations: 18.39 kB / 0.9032 GB, free: 61.13 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005285/0.2668, allocations: 262.3 kB / 0.9035 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.267, allocations: 0.6965 MB / 0.9042 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.032e-05/0.267, allocations: 15.42 kB / 0.9042 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of SimCode: time 2.91e-07/0.267, allocations: 0 / 0.9042 GB, free: 60.1 MB / 0.6042 GB Notification: Performance of Templates: time 0.002438/0.2695, allocations: 1.323 MB / 0.9055 GB, free: 58.78 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)