Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_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.007367/0.007367, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001605/0.001605, allocations: 195.8 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.475/2.475, allocations: 390.2 MB / 0.6649 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 63.91 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7187/0.7202, allocations: 140.4 MB / 0.9496 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001906/0.7222, allocations: 0.8653 MB / 0.9504 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001335/0.7235, allocations: 1.221 MB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.971e-05/0.7236, allocations: 1.375 kB / 0.9516 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.946e-05/0.7236, allocations: 3.938 kB / 0.9516 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.312e-05/0.7237, allocations: 9.25 kB / 0.9516 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.7242, allocations: 134.4 kB / 0.9518 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.7244, allocations: 132.2 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.7245, allocations: 20.47 kB / 0.9519 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.7246, allocations: 57.95 kB / 0.952 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.031e-05/0.7247, allocations: 50.94 kB / 0.952 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.121e-05/0.7248, allocations: 12.19 kB / 0.952 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.79e-05/0.7248, allocations: 29.28 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.814e-05/0.7249, allocations: 19.78 kB / 0.9521 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.482e-05/0.725, allocations: 51.44 kB / 0.9521 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001389/0.7251, allocations: 97.3 kB / 0.9522 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.7251, allocations: 3.984 kB / 0.9522 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.352e-06/0.7251, allocations: 0 / 0.9522 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.7251, allocations: 0 / 0.9522 GB, free: 7.082 MB / 0.7169 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.0006989/0.7258, allocations: 447.6 kB / 0.9527 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.7259, allocations: 13.36 kB / 0.9527 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.202e-05/0.726, allocations: 15.69 kB / 0.9527 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.808e-05/0.726, allocations: 181.9 kB / 0.9529 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.7261, allocations: 8.531 kB / 0.9529 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.079e-05/0.7261, allocations: 8.625 kB / 0.9529 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.7264, allocations: 95.56 kB / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.7264, allocations: 192 / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.7264, allocations: 9.328 kB / 0.953 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.7264, allocations: 1.75 kB / 0.953 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003263/0.7268, allocations: 92.16 kB / 0.9531 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005433/0.7273, allocations: 374.1 kB / 0.9534 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.7276, allocations: 106.1 kB / 0.9535 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.7278, allocations: 62.66 kB / 0.9536 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.7278, allocations: 1.344 kB / 0.9536 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/0.7282, allocations: 121.4 kB / 0.9537 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.7282, allocations: 0 / 0.9537 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006847/0.7289, allocations: 213.4 kB / 0.9539 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.7289, allocations: 54.22 kB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.262e-05/0.729, allocations: 134.4 kB / 0.9541 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.729, allocations: 33.8 kB / 0.9541 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.597e-05/0.7291, allocations: 96.19 kB / 0.9542 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.639e-05/0.7291, allocations: 32.7 kB / 0.9542 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.7292, allocations: 40.36 kB / 0.9543 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.7293, allocations: 329.6 kB / 0.9546 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.7295, allocations: 80.78 kB / 0.9547 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.7298, allocations: 111.2 kB / 0.9548 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003972/0.7302, allocations: 183.4 kB / 0.9549 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.7302, allocations: 0.9688 kB / 0.9549 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005928/0.7308, allocations: 272.6 kB / 0.9552 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.7309, allocations: 33.45 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.7309, allocations: 5.672 kB / 0.9552 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.7309, allocations: 5.281 kB / 0.9552 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.731, allocations: 22.02 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.731, allocations: 9.453 kB / 0.9553 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002582/0.7313, allocations: 52.88 kB / 0.9553 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.7313, allocations: 11.34 kB / 0.9553 GB, free: 4.41 MB / 0.7169 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 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.864e-05/0.7314, allocations: 121.7 kB / 0.9555 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.7315, allocations: 12.25 kB / 0.9555 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000465/0.7319, allocations: 169.9 kB / 0.9556 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.732, allocations: 1.281 kB / 0.9556 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.732, allocations: 1.094 kB / 0.9556 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.732, allocations: 3.984 kB / 0.9556 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005958/0.7326, allocations: 458.2 kB / 0.9561 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.7326, allocations: 1.125 kB / 0.9561 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.7327, allocations: 18.72 kB / 0.9561 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.7327, allocations: 1.094 kB / 0.9561 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.7327, allocations: 1.438 kB / 0.9561 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.7327, allocations: 1.344 kB / 0.9561 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.7327, allocations: 3.938 kB / 0.9561 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004151/0.7332, allocations: 270.4 kB / 0.9564 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.402e-05/0.7332, allocations: 84.86 kB / 0.9564 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.7332, allocations: 5.391 kB / 0.9564 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.7334, allocations: 18.14 kB / 0.9565 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.142e-05/0.7334, allocations: 15.61 kB / 0.9565 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.7335, allocations: 10.98 kB / 0.9565 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.092e-05/0.7335, allocations: 98.39 kB / 0.9566 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7335, allocations: 0 / 0.9566 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002853/0.7338, allocations: 34.19 kB / 0.9566 GB, free: 3.324 MB / 0.7169 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001542/0.734, allocations: 107.3 kB / 0.9567 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005234/0.7345, allocations: 235.1 kB / 0.9569 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.7345, allocations: 0 / 0.9569 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001951/0.7347, allocations: 74.61 kB / 0.957 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.735, allocations: 14.92 kB / 0.957 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003875/0.7354, allocations: 245.6 kB / 0.9573 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.7355, allocations: 0.6984 MB / 0.9579 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.659e-05/0.7356, allocations: 12.84 kB / 0.9579 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of SimCode: time 4.11e-07/0.7356, allocations: 0 / 0.9579 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of Templates: time 0.003227/0.7388, allocations: 1.64 MB / 0.9596 GB, free: 1.27 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches