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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-maint.8.1.x/package.mo): time 1.678/1.678, allocations: 293 MB / 309 MB, free: 4.77 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.001065/0.001065, allocations: 183.3 kB / 378.7 MB, free: 1.012 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.665/1.665, allocations: 205.4 MB / 0.6383 GB, free: 8.207 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.0007109/0.000711, allocations: 96.95 kB / 0.7527 GB, free: 62.67 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004082/0.0004084, allocations: 12 kB / 0.8768 GB, free: 10.42 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2655, allocations: 116.4 MB / 0.9905 GB, free: 5.879 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7225/0.9881, allocations: 139.7 MB / 1.127 GB, free: 34.33 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.9883, allocations: 70.45 kB / 1.127 GB, free: 34.27 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.006511/0.9949, allocations: 2.498 MB / 1.129 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.645e-06/0.9949, allocations: 0 / 1.129 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 6.813e-06/0.9949, allocations: 0 / 1.129 GB, free: 32.48 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.0005281/0.9955, allocations: 451.8 kB / 1.13 GB, free: 32 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.9955, allocations: 8.031 kB / 1.13 GB, free: 31.99 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.437e-05/0.9956, allocations: 12.84 kB / 1.13 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.909e-05/0.9957, allocations: 173.4 kB / 1.13 GB, free: 31.77 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.9957, allocations: 12.38 kB / 1.13 GB, free: 31.76 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.663e-05/0.9957, allocations: 11.84 kB / 1.13 GB, free: 31.75 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.996, allocations: 113 kB / 1.13 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.996, allocations: 0.75 kB / 1.13 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.996, allocations: 8.531 kB / 1.13 GB, free: 31.65 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.9961, allocations: 4 kB / 1.13 GB, free: 31.65 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003009/0.9964, allocations: 108.8 kB / 1.13 GB, free: 31.56 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005282/0.9969, allocations: 388.4 kB / 1.131 GB, free: 31.19 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.9971, allocations: 106.4 kB / 1.131 GB, free: 31.09 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.9973, allocations: 71.55 kB / 1.131 GB, free: 31.03 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.9973, allocations: 0 / 1.131 GB, free: 31.03 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002994/0.9977, allocations: 128.1 kB / 1.131 GB, free: 30.92 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.9977, allocations: 4 kB / 1.131 GB, free: 30.91 MB / 0.7292 GB Notification: Performance of matching and sorting (n=12): time 0.0006135/0.9983, allocations: 242.4 kB / 1.131 GB, free: 30.71 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.9983, allocations: 51.41 kB / 1.131 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.087e-05/0.9984, allocations: 132.5 kB / 1.131 GB, free: 30.52 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.9984, allocations: 29.7 kB / 1.131 GB, free: 30.48 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.039e-05/0.9985, allocations: 103.2 kB / 1.131 GB, free: 30.38 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.501e-05/0.9985, allocations: 26.72 kB / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.225e-05/0.9986, allocations: 4.75 kB / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.674e-05/0.9986, allocations: 322.1 kB / 1.132 GB, free: 30.04 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.9988, allocations: 100.5 kB / 1.132 GB, free: 29.95 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002123/0.9991, allocations: 123.5 kB / 1.132 GB, free: 29.84 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003571/0.9994, allocations: 207.2 kB / 1.132 GB, free: 29.63 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9994, allocations: 0 / 1.132 GB, free: 29.63 MB / 0.7292 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.00051/1, allocations: 286.4 kB / 1.132 GB, free: 29.38 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/1, allocations: 41.17 kB / 1.133 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/1, allocations: 1.062 kB / 1.133 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/1, allocations: 4 kB / 1.133 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/1, allocations: 27.58 kB / 1.133 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/1, allocations: 7.609 kB / 1.133 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/1, allocations: 59.08 kB / 1.133 GB, free: 29.25 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/1, allocations: 11.47 kB / 1.133 GB, free: 29.25 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 8.194e-05/1.001, allocations: 131.6 kB / 1.133 GB, free: 29.11 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/1.001, allocations: 7.906 kB / 1.133 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000408/1.001, allocations: 189.1 kB / 1.133 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/1.001, allocations: 0 / 1.133 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.001, allocations: 4.688 kB / 1.133 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/1.001, allocations: 3.516 kB / 1.133 GB, free: 28.94 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005111/1.002, allocations: 472.1 kB / 1.133 GB, free: 28.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/1.002, allocations: 0 / 1.133 GB, free: 28.47 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.834e-05/1.002, allocations: 27.48 kB / 1.133 GB, free: 28.45 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/1.002, allocations: 1.297 kB / 1.133 GB, free: 28.45 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/1.002, allocations: 8 kB / 1.133 GB, free: 28.44 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/1.002, allocations: 0 / 1.133 GB, free: 28.44 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.002, allocations: 8.938 kB / 1.133 GB, free: 28.43 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/1.002, allocations: 276.4 kB / 1.134 GB, free: 28.18 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.564e-05/1.002, allocations: 81.58 kB / 1.134 GB, free: 28.08 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/1.002, allocations: 11.47 kB / 1.134 GB, free: 28.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/1.002, allocations: 15.28 kB / 1.134 GB, free: 28.06 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.04e-05/1.002, allocations: 21.92 kB / 1.134 GB, free: 28.05 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/1.002, allocations: 8 kB / 1.134 GB, free: 28.04 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.415e-05/1.002, allocations: 94.61 kB / 1.134 GB, free: 27.95 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/1.002, allocations: 0.6562 kB / 1.134 GB, free: 27.95 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002665/1.003, allocations: 32 kB / 1.134 GB, free: 27.92 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.0001571/1.003, allocations: 127 kB / 1.134 GB, free: 27.79 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004874/1.003, allocations: 258.7 kB / 1.134 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/1.003, allocations: 0 / 1.134 GB, free: 27.55 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001781/1.004, allocations: 82.56 kB / 1.134 GB, free: 27.49 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/1.004, allocations: 16.92 kB / 1.134 GB, free: 27.48 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003844/1.004, allocations: 217.7 kB / 1.135 GB, free: 27.25 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/1.004, allocations: 0.6945 MB / 1.135 GB, free: 26.54 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.667e-05/1.004, allocations: 11.94 kB / 1.135 GB, free: 26.54 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.584e-05/1.004, allocations: 16.09 kB / 1.135 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/1.004, allocations: 0 / 1.135 GB, free: 26.52 MB / 0.7292 GB Notification: Performance of Templates: time 0.003959/1.008, allocations: 1.669 MB / 1.137 GB, free: 25.61 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1)