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.139/5.139, allocations: 0.5623 GB / 0.5776 GB, free: 3.336 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.002531/0.00253, allocations: 360 kB / 0.6447 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.489/4.489, allocations: 410.7 MB / 1.113 GB, free: 5.945 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.001851/0.001851, allocations: 176.8 kB / 1.226 GB, free: 6.148 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005443/0.0005446, allocations: 12 kB / 1.349 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8151/0.8157, 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.001081/0.8168, allocations: 0.5188 MB / 1.462 GB, free: 283.8 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.8185, allocations: 1.155 MB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.843e-05/0.8187, allocations: 6.219 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 2.149e-05/0.8187, allocations: 3.938 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 9.305e-05/0.8188, allocations: 11.92 kB / 1.463 GB, free: 282.6 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006484/0.8195, allocations: 132.2 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001491/0.8196, allocations: 123.7 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.8197, allocations: 17.2 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.8198, allocations: 55.77 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 9.452e-05/0.82, allocations: 47.81 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.037e-05/0.82, allocations: 8 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 8.129e-05/0.8201, allocations: 20.98 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 2.636e-05/0.8201, allocations: 15.92 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.403e-05/0.8202, allocations: 45.64 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.8204, allocations: 102.5 kB / 1.464 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8204, allocations: 0.75 kB / 1.464 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8204, allocations: 0 / 1.464 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.8204, allocations: 0.5312 kB / 1.464 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.0007519/0.8212, allocations: 431.8 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.8212, allocations: 11.62 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.682e-05/0.8213, allocations: 11.91 kB / 1.464 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.8214, allocations: 183.9 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/0.8215, allocations: 8 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.8215, allocations: 8 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004247/0.8219, allocations: 113.2 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.822, allocations: 0 / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.822, allocations: 6.734 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.822, allocations: 0 / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005824/0.8226, allocations: 108.3 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006947/0.8233, allocations: 383.5 kB / 1.465 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.8238, allocations: 101.4 kB / 1.465 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003077/0.8241, allocations: 71.56 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.613e-05/0.8241, allocations: 4.484 kB / 1.465 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004652/0.8246, allocations: 138.3 kB / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=12): time 2.725e-06/0.8246, allocations: 0 / 1.465 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=12): time 0.001087/0.8257, allocations: 237.2 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.8258, allocations: 59.36 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.8259, allocations: 125.8 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.8259, allocations: 33.7 kB / 1.466 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.546e-05/0.826, allocations: 104.5 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/0.8261, allocations: 24.58 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.336e-05/0.8261, allocations: 4 kB / 1.466 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.8262, allocations: 319.5 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.8266, allocations: 85.97 kB / 1.466 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004085/0.827, allocations: 136.8 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004109/0.8274, allocations: 110.4 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.8274, allocations: 4.875 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009847/0.8284, allocations: 298.1 kB / 1.467 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.287e-05/0.8285, allocations: 29.7 kB / 1.467 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.8285, allocations: 5.344 kB / 1.467 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.8285, allocations: 0 / 1.467 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002364/0.8288, allocations: 40.92 kB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.8288, allocations: 3.984 kB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004813/0.8293, allocations: 60.89 kB / 1.467 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-05/0.8294, allocations: 15.98 kB / 1.467 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.000137/0.8295, allocations: 122.8 kB / 1.467 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.8296, allocations: 13.12 kB / 1.467 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000771/0.8303, allocations: 193.6 kB / 1.467 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.8304, allocations: 0 / 1.467 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.8304, allocations: 1.531 kB / 1.467 GB, free: 278.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.971e-05/0.8304, allocations: 88.97 kB / 1.467 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.8305, allocations: 7.984 kB / 1.467 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.8306, allocations: 17.42 kB / 1.467 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.469e-05/0.8307, allocations: 19.97 kB / 1.467 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000854/0.8316, allocations: 266.8 kB / 1.467 GB, free: 277.9 MB / 0.8542 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007315/0.8324, allocations: 369.7 kB / 1.468 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003212/0.8327, allocations: 74.97 kB / 1.468 GB, free: 277.5 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 5.681e-05/0.8328, allocations: 98.77 kB / 1.468 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of Backend: time 9.62e-07/0.8328, allocations: 1 kB / 1.468 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009638/0.8338, allocations: 277.5 kB / 1.468 GB, free: 277.1 MB / 0.8542 GB Notification: Performance of SimCode: time 0.0005938/0.8344, allocations: 0.6487 MB / 1.469 GB, free: 276.4 MB / 0.8542 GB Notification: Performance of Templates: time 0.005846/0.8402, allocations: 1.822 MB / 1.471 GB, free: 274.7 MB / 0.8542 GB