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.001538/0.001538, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001646/0.001646, allocations: 191 kB / 17.29 MB, free: 5.516 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.487/1.487, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.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.324/2.324, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 68 kB / 0.814 GB, free: 32.64 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.314/0.3155, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002313/0.3179, allocations: 0.8023 MB / 0.9519 GB, free: 7.246 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00169/0.3196, allocations: 1.206 MB / 0.9531 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.913e-05/0.3197, allocations: 0 / 0.9531 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.809e-05/0.3197, allocations: 7.875 kB / 0.9531 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.3198, allocations: 19.84 kB / 0.9531 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005521/0.3204, allocations: 143.6 kB / 0.9533 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002259/0.3206, allocations: 155.8 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3208, allocations: 28.2 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.3209, allocations: 71.75 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.321, allocations: 59.8 kB / 0.9536 GB, free: 5.547 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.321, allocations: 12 kB / 0.9536 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.829e-05/0.3211, allocations: 31.97 kB / 0.9536 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.076e-05/0.3212, allocations: 19.92 kB / 0.9536 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.348e-05/0.3212, allocations: 55.78 kB / 0.9537 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.3214, allocations: 147.5 kB / 0.9538 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3215, allocations: 0 / 0.9538 GB, free: 5.285 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3215, allocations: 4 kB / 0.9538 GB, free: 5.281 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.119e-06/0.3215, allocations: 0 / 0.9538 GB, free: 5.281 MB / 0.7325 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.0007859/0.3223, allocations: 444.8 kB / 0.9542 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.3223, allocations: 15.97 kB / 0.9543 GB, free: 4.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.882e-05/0.3224, allocations: 12.84 kB / 0.9543 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.3225, allocations: 179.3 kB / 0.9544 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.889e-05/0.3226, allocations: 8.359 kB / 0.9545 GB, free: 4.543 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.89e-05/0.3226, allocations: 16.38 kB / 0.9545 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.3229, allocations: 90.19 kB / 0.9546 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.3229, allocations: 192 / 0.9546 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.3229, allocations: 11.94 kB / 0.9546 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3229, allocations: 0 / 0.9546 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.3233, allocations: 87.84 kB / 0.9546 GB, free: 4.336 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005927/0.3239, allocations: 384.5 kB / 0.955 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.3241, allocations: 98.58 kB / 0.9551 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3243, allocations: 60.81 kB / 0.9552 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.3244, allocations: 4 kB / 0.9552 GB, free: 3.738 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.3247, allocations: 115.3 kB / 0.9553 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.503e-06/0.3247, allocations: 0 / 0.9553 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0006397/0.3253, allocations: 217.4 kB / 0.9555 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.3254, allocations: 55.41 kB / 0.9555 GB, free: 3.328 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.3255, allocations: 125.7 kB / 0.9557 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.3255, allocations: 33.7 kB / 0.9557 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.3256, allocations: 96.14 kB / 0.9558 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.3256, allocations: 35.53 kB / 0.9558 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.083e-05/0.3257, allocations: 49.69 kB / 0.9559 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3258, allocations: 326.8 kB / 0.9562 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.3261, allocations: 75.94 kB / 0.9563 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.3263, allocations: 122 kB / 0.9564 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003976/0.3267, allocations: 193.8 kB / 0.9566 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3267, allocations: 0 / 0.9566 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005734/0.3273, allocations: 255.1 kB / 0.9568 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.143e-05/0.3274, allocations: 41.69 kB / 0.9568 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.3274, allocations: 0 / 0.9568 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.3274, allocations: 4 kB / 0.9568 GB, free: 1.914 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.3276, allocations: 28.03 kB / 0.9569 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.3276, allocations: 4 kB / 0.9569 GB, free: 1.883 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.3278, allocations: 43.86 kB / 0.9569 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.788e-05/0.3278, allocations: 4 kB / 0.9569 GB, free: 1.836 MB / 0.7325 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 0.0001233/0.328, allocations: 139.6 kB / 0.957 GB, free: 1.691 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.328, allocations: 15.89 kB / 0.9571 GB, free: 1.676 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004524/0.3285, allocations: 170.4 kB / 0.9572 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3285, allocations: 0 / 0.9572 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3285, allocations: 3.938 kB / 0.9572 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3285, allocations: 3.984 kB / 0.9572 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000718/0.3292, allocations: 458.3 kB / 0.9577 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3292, allocations: 0 / 0.9577 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.919e-05/0.3293, allocations: 15.98 kB / 0.9577 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3294, allocations: 0 / 0.9577 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.3294, allocations: 8 kB / 0.9577 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.3294, allocations: 3.984 kB / 0.9577 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.3294, allocations: 3.938 kB / 0.9577 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.3298, allocations: 255.2 kB / 0.9579 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.3299, allocations: 89 kB / 0.958 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.46e-05/0.3299, allocations: 4 kB / 0.958 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.33, allocations: 15.92 kB / 0.958 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.446e-05/0.3301, allocations: 19.97 kB / 0.9581 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.3301, allocations: 4 kB / 0.9581 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.802e-05/0.3302, allocations: 99.27 kB / 0.9582 GB, free: 460 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3302, allocations: 0 / 0.9582 GB, free: 460 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002713/0.3305, allocations: 28 kB / 0.9582 GB, free: 432 kB / 0.7325 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.000189/0.3307, allocations: 113.1 kB / 0.9583 GB, free: 308 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005558/0.3312, allocations: 239.1 kB / 0.9585 GB, free: 56 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3312, allocations: 0 / 0.9585 GB, free: 56 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.3315, allocations: 64 kB / 0.9586 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.3318, allocations: 23.88 kB / 0.9586 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004708/0.3322, allocations: 210.8 kB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.3326, allocations: 0.6963 MB / 0.9595 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.674e-05/0.3326, allocations: 4.562 kB / 0.9595 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.916e-05/0.3327, allocations: 19.42 kB / 0.9595 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of SimCode: time 2e-07/0.3327, allocations: 0 / 0.9595 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of Templates: time 0.004692/0.3374, allocations: 1.92 MB / 0.9614 GB, free: 13.09 MB / 0.7481 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 -s gbode -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