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.001584/0.001584, allocations: 107 kB / 16.36 MB, free: 6.336 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.001919/0.001919, allocations: 195.3 kB / 17.29 MB, free: 5.883 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 / 241 MB, free: 15.17 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.314/2.314, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 64.16 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3212, allocations: 140.4 MB / 0.9511 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002094/0.3233, allocations: 0.7945 MB / 0.9519 GB, free: 7.211 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.3248, allocations: 1.214 MB / 0.9531 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.846e-05/0.3249, allocations: 3.938 kB / 0.9531 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.545e-05/0.325, allocations: 7.938 kB / 0.9531 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.964e-05/0.325, allocations: 15.81 kB / 0.9531 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005372/0.3256, allocations: 151.1 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.3258, allocations: 155.7 kB / 0.9534 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.3259, allocations: 28.2 kB / 0.9534 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001113/0.326, allocations: 59.83 kB / 0.9535 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000107/0.3261, allocations: 67.78 kB / 0.9536 GB, free: 5.504 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.317e-05/0.3262, allocations: 16 kB / 0.9536 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.603e-05/0.3263, allocations: 27.98 kB / 0.9536 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.124e-05/0.3263, allocations: 19.92 kB / 0.9536 GB, free: 5.441 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.627e-05/0.3264, allocations: 59.77 kB / 0.9537 GB, free: 5.383 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002181/0.3266, allocations: 143.5 kB / 0.9538 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3266, allocations: 4 kB / 0.9538 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3266, allocations: 0 / 0.9538 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.999e-06/0.3266, allocations: 0 / 0.9538 GB, free: 5.238 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.0007385/0.3274, allocations: 444.8 kB / 0.9543 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3274, allocations: 12.03 kB / 0.9543 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.317e-05/0.3275, allocations: 8.844 kB / 0.9543 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.3276, allocations: 184.2 kB / 0.9544 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.3277, allocations: 12.38 kB / 0.9545 GB, free: 4.496 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.992e-05/0.3277, allocations: 8.375 kB / 0.9545 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002794/0.328, allocations: 94.19 kB / 0.9546 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.328, allocations: 4.125 kB / 0.9546 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.328, allocations: 3.938 kB / 0.9546 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.328, allocations: 4 kB / 0.9546 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003029/0.3283, allocations: 91.91 kB / 0.9547 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.329, allocations: 380.5 kB / 0.955 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.3292, allocations: 98.66 kB / 0.9551 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001901/0.3294, allocations: 56.81 kB / 0.9552 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.3295, allocations: 4 kB / 0.9552 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002973/0.3298, allocations: 127.2 kB / 0.9553 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.3298, allocations: 0 / 0.9553 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12): time 0.0006328/0.3304, allocations: 201.5 kB / 0.9555 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3305, allocations: 55.41 kB / 0.9555 GB, free: 3.293 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.3306, allocations: 129.7 kB / 0.9557 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.3306, allocations: 33.7 kB / 0.9557 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.996e-05/0.3307, allocations: 100.1 kB / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.44e-05/0.3307, allocations: 39.55 kB / 0.9558 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.228e-05/0.3308, allocations: 37.7 kB / 0.9559 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.331, allocations: 334.7 kB / 0.9562 GB, free: 2.598 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000253/0.3312, allocations: 71.94 kB / 0.9563 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.3315, allocations: 126 kB / 0.9564 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.3319, allocations: 189.3 kB / 0.9566 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3319, allocations: 0 / 0.9566 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005879/0.3325, allocations: 263.7 kB / 0.9568 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.936e-05/0.3326, allocations: 41.64 kB / 0.9568 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.3326, allocations: 0 / 0.9568 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.3326, allocations: 0 / 0.9568 GB, free: 1.871 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.3327, allocations: 27.97 kB / 0.9569 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.3327, allocations: 0 / 0.9569 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002252/0.333, allocations: 39.86 kB / 0.9569 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.333, allocations: 15.98 kB / 0.9569 GB, free: 1.789 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.0001181/0.3331, allocations: 137.7 kB / 0.9571 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.3332, allocations: 7.906 kB / 0.9571 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004622/0.3336, allocations: 173.9 kB / 0.9572 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3336, allocations: 0 / 0.9572 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.3337, allocations: 0 / 0.9572 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.3337, allocations: 7.984 kB / 0.9572 GB, free: 1.453 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007015/0.3344, allocations: 450.2 kB / 0.9577 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3344, allocations: 0 / 0.9577 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.3345, allocations: 19.98 kB / 0.9577 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.3345, allocations: 7.922 kB / 0.9577 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.3345, allocations: 0 / 0.9577 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.3346, allocations: 8 kB / 0.9577 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3346, allocations: 3.938 kB / 0.9577 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.3351, allocations: 255.3 kB / 0.9579 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.3351, allocations: 81.02 kB / 0.958 GB, free: 0.5547 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.3352, allocations: 8 kB / 0.958 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.3353, allocations: 23.92 kB / 0.9581 GB, free: 0.5234 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.41e-05/0.3354, allocations: 11.97 kB / 0.9581 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.431e-05/0.3354, allocations: 8 kB / 0.9581 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.182e-05/0.3355, allocations: 95.27 kB / 0.9582 GB, free: 420 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.3355, allocations: 0 / 0.9582 GB, free: 420 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002903/0.3358, allocations: 28 kB / 0.9582 GB, free: 392 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.0002279/0.336, allocations: 119.2 kB / 0.9583 GB, free: 260 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005713/0.3366, allocations: 231.2 kB / 0.9585 GB, free: 16 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3366, allocations: 0 / 0.9585 GB, free: 16 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002235/0.3369, allocations: 71.89 kB / 0.9586 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.3372, allocations: 28.11 kB / 0.9586 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004923/0.3377, allocations: 198.7 kB / 0.9588 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.338, allocations: 0.6924 MB / 0.9595 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 5.018e-05/0.3381, allocations: 12.55 kB / 0.9595 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.252e-05/0.3381, allocations: 15.44 kB / 0.9595 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of SimCode: time 2.2e-07/0.3381, allocations: 0 / 0.9595 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of Templates: time 0.005353/0.3435, allocations: 1.92 MB / 0.9614 GB, free: 13.05 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 cvode -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