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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008043/0.0008045, allocations: 87.42 kB / 15.07 MB, free: 1.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008135/0.0008135, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.677/1.677, allocations: 292.7 MB / 0.5499 GB, free: 14.58 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005155/0.0005157, allocations: 13.19 kB / 0.6737 GB, free: 26.42 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2423, allocations: 116.3 MB / 0.7873 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00097/0.2433, allocations: 0.5175 MB / 0.7878 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00138/0.2447, allocations: 1.181 MB / 0.789 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.484e-05/0.2448, allocations: 4 kB / 0.789 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.206e-05/0.2448, allocations: 3.984 kB / 0.789 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.103e-05/0.2449, allocations: 11.88 kB / 0.789 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.2454, allocations: 130.8 kB / 0.7891 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.2455, allocations: 123.7 kB / 0.7892 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.697e-05/0.2456, allocations: 20.22 kB / 0.7893 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.17e-05/0.2457, allocations: 51.83 kB / 0.7893 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.598e-05/0.2458, allocations: 51.81 kB / 0.7894 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.053e-05/0.2458, allocations: 4 kB / 0.7894 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.946e-05/0.2459, allocations: 23.97 kB / 0.7894 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.2459, allocations: 15.92 kB / 0.7894 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.293e-05/0.246, allocations: 37.7 kB / 0.7894 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.2461, allocations: 96.05 kB / 0.7895 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2461, allocations: 4 kB / 0.7895 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.755e-06/0.2461, allocations: 7.984 kB / 0.7895 GB, free: 9.637 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.2461, allocations: 0 / 0.7895 GB, free: 9.637 MB / 0.6075 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.0005807/0.2467, allocations: 424.8 kB / 0.7899 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.2468, allocations: 8.031 kB / 0.7899 GB, free: 9.16 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.674e-05/0.2468, allocations: 11.91 kB / 0.79 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.2469, allocations: 186.8 kB / 0.7901 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.247, allocations: 8 kB / 0.7901 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.636e-05/0.247, allocations: 11.98 kB / 0.7902 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002602/0.2473, allocations: 105.6 kB / 0.7903 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.2473, allocations: 3.938 kB / 0.7903 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.2473, allocations: 4 kB / 0.7903 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2473, allocations: 4 kB / 0.7903 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003174/0.2476, allocations: 111.8 kB / 0.7904 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005263/0.2482, allocations: 388.5 kB / 0.7907 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002393/0.2484, allocations: 102.6 kB / 0.7908 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.2486, allocations: 76.75 kB / 0.7909 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.2487, allocations: 0 / 0.7909 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002876/0.249, allocations: 135.3 kB / 0.791 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.249, allocations: 0 / 0.791 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006159/0.2496, allocations: 241.3 kB / 0.7913 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.2497, allocations: 55.41 kB / 0.7913 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.433e-05/0.2498, allocations: 141.4 kB / 0.7915 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.2498, allocations: 33.7 kB / 0.7915 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.125e-05/0.2499, allocations: 100 kB / 0.7916 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.166e-05/0.2499, allocations: 35.55 kB / 0.7916 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.352e-05/0.2499, allocations: 0 / 0.7916 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.25, allocations: 326.8 kB / 0.7919 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.2503, allocations: 83.94 kB / 0.792 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.2505, allocations: 128.2 kB / 0.7921 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002287/0.2508, allocations: 117.7 kB / 0.7922 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2508, allocations: 0 / 0.7922 GB, free: 6.613 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005634/0.2513, allocations: 283.2 kB / 0.7925 GB, free: 6.324 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.2514, allocations: 37.69 kB / 0.7926 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.2514, allocations: 0 / 0.7926 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.2514, allocations: 4 kB / 0.7926 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.2516, allocations: 31.91 kB / 0.7926 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.2516, allocations: 7.953 kB / 0.7926 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.2518, allocations: 55.89 kB / 0.7926 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.375e-05/0.2519, allocations: 12 kB / 0.7927 GB, free: 6.172 MB / 0.6075 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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 0.0001048/0.252, allocations: 138.4 kB / 0.7928 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.532e-05/0.252, allocations: 11.91 kB / 0.7928 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004384/0.2524, allocations: 185.9 kB / 0.793 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2525, allocations: 4 kB / 0.793 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2525, allocations: 0 / 0.793 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2525, allocations: 3.953 kB / 0.793 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006187/0.2531, allocations: 467 kB / 0.7934 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2531, allocations: 3.984 kB / 0.7934 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.2532, allocations: 27.98 kB / 0.7935 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2532, allocations: 0 / 0.7935 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.2533, allocations: 3.984 kB / 0.7935 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.2533, allocations: 7.891 kB / 0.7935 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2533, allocations: 0 / 0.7935 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00044/0.2537, allocations: 279.4 kB / 0.7937 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.074e-05/0.2538, allocations: 85.02 kB / 0.7938 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.2538, allocations: 3.938 kB / 0.7938 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.2539, allocations: 23.98 kB / 0.7939 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.254, allocations: 23.86 kB / 0.7939 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.254, allocations: 7.984 kB / 0.7939 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.604e-05/0.2541, allocations: 95.27 kB / 0.794 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2541, allocations: 0 / 0.794 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002664/0.2544, allocations: 35.91 kB / 0.794 GB, free: 4.688 MB / 0.6075 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 (zeroCrossing.y,$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.0001884/0.2546, allocations: 115.2 kB / 0.7941 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005566/0.2551, allocations: 251.3 kB / 0.7944 GB, free: 4.309 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.2552, allocations: 4 kB / 0.7944 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001905/0.2553, allocations: 72.14 kB / 0.7944 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.2557, allocations: 23.92 kB / 0.7945 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00046/0.2561, allocations: 219.4 kB / 0.7947 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.2565, allocations: 0.6965 MB / 0.7953 GB, free: 3.246 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.643e-05/0.2565, allocations: 8.547 kB / 0.7953 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.2566, allocations: 15.44 kB / 0.7954 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.2566, allocations: 0 / 0.7954 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of Templates: time 0.004192/0.2608, allocations: 1.646 MB / 0.797 GB, free: 1.598 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: