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.001052/0.001052, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0013/0.0013, allocations: 177.3 kB / 15.95 MB, free: 216 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.557/1.557, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.742/1.742, allocations: 292.5 MB / 0.5497 GB, free: 14.62 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.0004889/0.0004891, allocations: 20 kB / 0.6736 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2872, allocations: 116.3 MB / 0.7871 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001106/0.2883, allocations: 0.5175 MB / 0.7876 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001488/0.2898, allocations: 1.161 MB / 0.7888 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.381e-05/0.2899, allocations: 4 kB / 0.7888 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.598e-05/0.2899, allocations: 7.922 kB / 0.7888 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.659e-05/0.29, allocations: 11.97 kB / 0.7888 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004979/0.2905, allocations: 135.3 kB / 0.7889 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.2907, allocations: 75.84 kB / 0.789 GB, free: 10.03 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.2908, allocations: 24.22 kB / 0.789 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.2909, allocations: 51.88 kB / 0.7891 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.287e-05/0.291, allocations: 51.8 kB / 0.7891 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.383e-05/0.291, allocations: 8 kB / 0.7891 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.329e-05/0.2911, allocations: 19.98 kB / 0.7891 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.669e-05/0.2911, allocations: 15.92 kB / 0.7892 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.615e-05/0.2912, allocations: 37.7 kB / 0.7892 GB, free: 9.816 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.2913, allocations: 96.05 kB / 0.7893 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.2914, allocations: 0 / 0.7893 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2914, allocations: 0 / 0.7893 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.2914, allocations: 0 / 0.7893 GB, free: 9.723 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.0006983/0.2921, allocations: 436.7 kB / 0.7897 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/0.2921, allocations: 12.03 kB / 0.7897 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.2922, allocations: 7.906 kB / 0.7897 GB, free: 9.223 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001489/0.2923, allocations: 178.9 kB / 0.7899 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.2924, allocations: 12 kB / 0.7899 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.736e-05/0.2924, allocations: 12 kB / 0.7899 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003004/0.2927, allocations: 101.6 kB / 0.79 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.2927, allocations: 0 / 0.79 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.2928, allocations: 12 kB / 0.79 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.2928, allocations: 4 kB / 0.79 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003402/0.2931, allocations: 115.8 kB / 0.7901 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006266/0.2937, allocations: 384.5 kB / 0.7905 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002759/0.294, allocations: 110.6 kB / 0.7906 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.2941, allocations: 0 / 0.7906 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003541/0.2944, allocations: 127.3 kB / 0.7907 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=12): time 1.403e-06/0.2944, allocations: 0 / 0.7907 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of matching and sorting (n=12): time 0.0006931/0.2951, allocations: 241.6 kB / 0.791 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.2952, allocations: 63.39 kB / 0.791 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.2953, allocations: 127.4 kB / 0.7911 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.2953, allocations: 37.69 kB / 0.7912 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.411e-05/0.2954, allocations: 99.98 kB / 0.7913 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.482e-05/0.2955, allocations: 31.62 kB / 0.7913 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/0.2955, allocations: 8 kB / 0.7913 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2956, allocations: 318.8 kB / 0.7916 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.2959, allocations: 91.94 kB / 0.7917 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002463/0.2961, allocations: 128.1 kB / 0.7918 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002424/0.2964, allocations: 113.6 kB / 0.7919 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2964, allocations: 3.938 kB / 0.7919 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006166/0.297, allocations: 282.1 kB / 0.7922 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.204e-05/0.2971, allocations: 37.7 kB / 0.7922 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2971, allocations: 0 / 0.7922 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.2971, allocations: 11.97 kB / 0.7923 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.2972, allocations: 27.95 kB / 0.7923 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.2973, allocations: 7.953 kB / 0.7923 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.2975, allocations: 62.75 kB / 0.7923 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.2976, allocations: 12 kB / 0.7924 GB, free: 6.32 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.000111/0.2977, allocations: 129.7 kB / 0.7925 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.948e-05/0.2977, allocations: 11.81 kB / 0.7925 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004641/0.2982, allocations: 193.9 kB / 0.7927 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2982, allocations: 0 / 0.7927 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2982, allocations: 0 / 0.7927 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2982, allocations: 7.938 kB / 0.7927 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00073/0.2989, allocations: 463.1 kB / 0.7931 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.299, allocations: 4 kB / 0.7931 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.2991, allocations: 23.97 kB / 0.7932 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2991, allocations: 3.938 kB / 0.7932 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.2991, allocations: 4 kB / 0.7932 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.388e-05/0.2991, allocations: 11.94 kB / 0.7932 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2991, allocations: 3.938 kB / 0.7932 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000439/0.2996, allocations: 275.4 kB / 0.7934 GB, free: 5.125 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.431e-05/0.2996, allocations: 85.02 kB / 0.7935 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.2996, allocations: 11.98 kB / 0.7935 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.2998, allocations: 15.98 kB / 0.7935 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.2998, allocations: 19.92 kB / 0.7936 GB, free: 4.977 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.2999, allocations: 8 kB / 0.7936 GB, free: 4.969 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.455e-05/0.2999, allocations: 91.27 kB / 0.7937 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3, allocations: 8 kB / 0.7937 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002884/0.3003, allocations: 32.12 kB / 0.7937 GB, free: 4.84 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.0001926/0.3005, allocations: 119.1 kB / 0.7938 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005485/0.301, allocations: 251.2 kB / 0.7941 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.301, allocations: 0 / 0.7941 GB, free: 4.457 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.3012, allocations: 80.2 kB / 0.7941 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.3015, allocations: 15.94 kB / 0.7941 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004183/0.3019, allocations: 223.3 kB / 0.7944 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.3022, allocations: 0.6965 MB / 0.795 GB, free: 3.395 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.022e-05/0.3022, allocations: 16.48 kB / 0.7951 GB, free: 3.379 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.3023, allocations: 11.44 kB / 0.7951 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.3023, allocations: 4 kB / 0.7951 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of Templates: time 0.004841/0.3071, allocations: 1.638 MB / 0.7967 GB, free: 1.742 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: