Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.683/2.683, allocations: 251.1 MB / 266.1 MB, free: 11.56 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001496, allocations: 183.5 kB / 325.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.429/2.429, allocations: 205.4 MB / 0.5766 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00123/0.00123, allocations: 96.72 kB / 0.6811 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006476/0.0006478, allocations: 11.97 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2249, allocations: 106.3 MB / 0.8989 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001713/0.2267, allocations: 1.217 MB / 0.9001 GB, free: 64.23 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006101/0.2273, allocations: 282.1 kB / 0.9004 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.759e-05/0.2274, allocations: 0 / 0.9004 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.052e-05/0.2274, allocations: 7.922 kB / 0.9004 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001059/0.2276, allocations: 7.922 kB / 0.9004 GB, free: 63.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.2278, allocations: 35.89 kB / 0.9004 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.2279, allocations: 51.88 kB / 0.9005 GB, free: 63.85 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.228, allocations: 28.19 kB / 0.9005 GB, free: 63.82 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.659e-05/0.2281, allocations: 31.92 kB / 0.9005 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.212e-05/0.2282, allocations: 35.83 kB / 0.9005 GB, free: 63.76 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.2282, allocations: 4 kB / 0.9005 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.075e-05/0.2283, allocations: 4 kB / 0.9005 GB, free: 63.75 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.573e-05/0.2283, allocations: 19.91 kB / 0.9006 GB, free: 63.73 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.664e-05/0.2284, allocations: 41.64 kB / 0.9006 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.896e-05/0.2285, allocations: 59.8 kB / 0.9007 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.2285, allocations: 0 / 0.9007 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.412e-06/0.2285, allocations: 0 / 0.9007 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.2285, allocations: 0 / 0.9007 GB, free: 63.62 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.0007796/0.2293, allocations: 415.2 kB / 0.9011 GB, free: 63.17 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2293, allocations: 12.03 kB / 0.9011 GB, free: 63.16 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.2294, allocations: 11.91 kB / 0.9011 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.2295, allocations: 182.9 kB / 0.9013 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.2296, allocations: 8 kB / 0.9013 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.2296, allocations: 4 kB / 0.9013 GB, free: 62.92 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.23, allocations: 112.4 kB / 0.9014 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2301, allocations: 0 / 0.9014 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.2301, allocations: 8 kB / 0.9014 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2301, allocations: 4 kB / 0.9014 GB, free: 62.79 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005768/0.2307, allocations: 115.8 kB / 0.9015 GB, free: 62.68 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007537/0.2315, allocations: 360.6 kB / 0.9018 GB, free: 62.28 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008288/0.2323, allocations: 162.6 kB / 0.902 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.2324, allocations: 0 / 0.902 GB, free: 62.11 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004414/0.2328, allocations: 119.5 kB / 0.9021 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 2.504e-06/0.2328, allocations: 0 / 0.9021 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.001036/0.2339, allocations: 237.4 kB / 0.9023 GB, free: 61.74 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.2339, allocations: 55.39 kB / 0.9024 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.2341, allocations: 122 kB / 0.9025 GB, free: 61.55 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.2341, allocations: 33.7 kB / 0.9025 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.3e-05/0.2342, allocations: 100.1 kB / 0.9026 GB, free: 61.41 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.252e-05/0.2342, allocations: 27.64 kB / 0.9027 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.126e-05/0.2342, allocations: 0 / 0.9027 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.007e-05/0.2343, allocations: 326.8 kB / 0.903 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003095/0.2346, allocations: 59.95 kB / 0.903 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/0.235, allocations: 99.33 kB / 0.9031 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.2353, allocations: 59.97 kB / 0.9032 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2353, allocations: 0 / 0.9032 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007381/0.2361, allocations: 205.7 kB / 0.9034 GB, free: 60.62 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.2361, allocations: 6.031 kB / 0.9034 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.2361, allocations: 0 / 0.9034 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.2361, allocations: 4 kB / 0.9034 GB, free: 60.61 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002197/0.2364, allocations: 31.88 kB / 0.9034 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.2364, allocations: 0 / 0.9034 GB, free: 60.58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002244/0.2366, allocations: 39.94 kB / 0.9035 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.2366, allocations: 4 kB / 0.9035 GB, free: 60.54 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$PRE.booPul1.pulseStart,booPul1.pulseStart,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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001123/0.2368, allocations: 121.7 kB / 0.9036 GB, free: 60.41 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.502e-05/0.2368, allocations: 11.84 kB / 0.9036 GB, free: 60.39 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007364/0.2376, allocations: 185.9 kB / 0.9038 GB, free: 60.21 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2376, allocations: 8 kB / 0.9038 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.2376, allocations: 3.953 kB / 0.9038 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.2376, allocations: 3.984 kB / 0.9038 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009404/0.2386, allocations: 458.2 kB / 0.9042 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.2386, allocations: 0 / 0.9042 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001806/0.2388, allocations: 19.98 kB / 0.9042 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.2388, allocations: 0 / 0.9042 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.2388, allocations: 15.94 kB / 0.9043 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.2388, allocations: 4 kB / 0.9043 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.2388, allocations: 0 / 0.9043 GB, free: 59.65 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006881/0.2395, allocations: 267.2 kB / 0.9045 GB, free: 59.37 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.572e-05/0.2396, allocations: 92.94 kB / 0.9046 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.295e-05/0.2396, allocations: 0 / 0.9046 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.2399, allocations: 35.94 kB / 0.9046 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.24, allocations: 23.95 kB / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.2401, allocations: 0 / 0.9047 GB, free: 59.2 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.897e-05/0.2401, allocations: 95.39 kB / 0.9047 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.31e-07/0.2401, allocations: 0 / 0.9047 GB, free: 59.11 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003339/0.2405, allocations: 20 kB / 0.9048 GB, free: 59.09 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 (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.0001459/0.2406, allocations: 107.2 kB / 0.9049 GB, free: 58.98 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0007218/0.2414, allocations: 155.8 kB / 0.905 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2414, allocations: 0 / 0.905 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.00034/0.2417, allocations: 75.89 kB / 0.9051 GB, free: 58.75 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.2421, allocations: 12.12 kB / 0.9051 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006687/0.2427, allocations: 234.5 kB / 0.9053 GB, free: 58.48 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.2429, allocations: 0.7004 MB / 0.906 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 8.555e-05/0.243, allocations: 12.55 kB / 0.906 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.751e-05/0.2431, allocations: 15.44 kB / 0.906 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of SimCode: time 1.112e-06/0.2431, allocations: 0 / 0.906 GB, free: 57.72 MB / 0.6042 GB Notification: Performance of Templates: time 0.004578/0.2477, allocations: 1.111 MB / 0.9071 GB, free: 56.62 MB / 0.6042 GB