Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.229/5.229, allocations: 0.5623 GB / 0.5769 GB, free: 3.324 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002473/0.002473, allocations: 358.7 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.357/4.357, allocations: 410.7 MB / 1.112 GB, free: 6 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001781/0.001781, allocations: 186.6 kB / 1.225 GB, free: 6.164 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005676/0.0005678, allocations: 16 kB / 1.348 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6069/0.6075, allocations: 115.3 MB / 1.461 GB, free: 284.3 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0008501/0.6084, allocations: 0.5186 MB / 1.461 GB, free: 283.8 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.6098, allocations: 1.158 MB / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.602e-05/0.6098, allocations: 0 / 1.462 GB, free: 282.7 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.7e-05/0.6099, allocations: 5.125 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 7.406e-05/0.6099, allocations: 15.91 kB / 1.462 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005028/0.6105, allocations: 125.8 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.000119/0.6106, allocations: 127.7 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 9.742e-05/0.6107, allocations: 18.86 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 8.499e-05/0.6108, allocations: 49.91 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.418e-05/0.6109, allocations: 55.8 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 2.916e-05/0.6109, allocations: 8 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 6.777e-05/0.611, allocations: 23.92 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.341e-05/0.6111, allocations: 15.92 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.647e-05/0.6111, allocations: 42.36 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001312/0.6113, allocations: 97.88 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.841e-06/0.6113, allocations: 0.5938 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.927e-06/0.6113, allocations: 0 / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.469e-06/0.6113, allocations: 1.031 kB / 1.463 GB, free: 282.1 MB / 0.8542 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.0005669/0.6119, allocations: 431.2 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.453e-05/0.6119, allocations: 11.62 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.306e-05/0.612, allocations: 12.53 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.166e-05/0.6121, allocations: 186.8 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.6121, allocations: 4.625 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.6122, allocations: 13.28 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.6125, allocations: 107.6 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.958e-06/0.6125, allocations: 0 / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.6126, allocations: 4.75 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.862e-06/0.6126, allocations: 4 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.613, allocations: 108.5 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006059/0.6136, allocations: 381.8 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.6139, allocations: 108.4 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.6142, allocations: 62.53 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.6142, allocations: 9.344 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000345/0.6146, allocations: 127.8 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 4.075e-06/0.6146, allocations: 1.75 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.0008046/0.6154, allocations: 243.2 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.6155, allocations: 60.48 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.737e-05/0.6156, allocations: 121.8 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.6156, allocations: 34.45 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.982e-05/0.6157, allocations: 108 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.6157, allocations: 24.45 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.6158, allocations: 7.938 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.789e-05/0.6158, allocations: 323.5 kB / 1.465 GB, free: 279.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003048/0.6162, allocations: 94.34 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.6165, allocations: 123.6 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.6168, allocations: 114.1 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.263e-06/0.6168, allocations: 0 / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007747/0.6176, allocations: 295.3 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.6177, allocations: 41.69 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.156e-06/0.6177, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.6177, allocations: 7.953 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.6179, allocations: 28.55 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.652e-06/0.6179, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.6183, allocations: 67.25 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.221e-05/0.6183, allocations: 6.688 kB / 1.466 GB, free: 278.7 MB / 0.8542 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.0001172/0.6184, allocations: 131.5 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.6185, allocations: 11.89 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005622/0.6191, allocations: 195.5 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.844e-06/0.6191, allocations: 4 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.638e-06/0.6191, allocations: 3.953 kB / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.724e-06/0.6191, allocations: 0 / 1.466 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008/0.6199, allocations: 471.5 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.791e-06/0.6199, allocations: 0 / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.6201, allocations: 26.14 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.6201, allocations: 0 / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.6202, allocations: 3.953 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.6202, allocations: 7.922 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.442e-06/0.6202, allocations: 4.812 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005698/0.6208, allocations: 269.3 kB / 1.467 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.918e-05/0.6208, allocations: 90.94 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.6209, allocations: 4 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.621, allocations: 22 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.6211, allocations: 22.12 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.6212, allocations: 4 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.6212, allocations: 95.25 kB / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.82e-07/0.6212, allocations: 3.938 kB / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003914/0.6216, allocations: 32.56 kB / 1.467 GB, free: 277.2 MB / 0.8542 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.0001547/0.6218, allocations: 104.2 kB / 1.468 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006576/0.6225, allocations: 260.3 kB / 1.468 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.6225, allocations: 0 / 1.468 GB, free: 276.9 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.6228, allocations: 84.06 kB / 1.468 GB, free: 276.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.6232, allocations: 14.05 kB / 1.468 GB, free: 276.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004497/0.6236, allocations: 216.9 kB / 1.468 GB, free: 276.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001424/0.6238, allocations: 0.7056 MB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 6.864e-05/0.6239, allocations: 10.67 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.6239, allocations: 11.44 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of SimCode: time 1.831e-06/0.6239, allocations: 0 / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of Templates: time 0.004988/0.6289, allocations: 1.661 MB / 1.47 GB, free: 274.2 MB / 0.8542 GB