Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.00112/0.00112, allocations: 114.3 kB / 16.37 MB, free: 6 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.001175/0.001175, allocations: 195.9 kB / 17.31 MB, free: 5.613 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.455/2.455, allocations: 437.1 MB / 0.7112 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 64.31 kB / 0.8707 GB, free: 1.406 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2888, allocations: 151.6 MB / 1.019 GB, free: 9.816 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002303/0.2912, allocations: 0.82 MB / 1.02 GB, free: 8.992 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001707/0.2929, allocations: 1.204 MB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.879e-05/0.293, allocations: 0 / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.812e-05/0.293, allocations: 11.92 kB / 1.021 GB, free: 7.762 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.815e-05/0.2932, allocations: 15.81 kB / 1.021 GB, free: 7.746 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005844/0.2938, allocations: 153.3 kB / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002325/0.294, allocations: 163.7 kB / 1.021 GB, free: 7.441 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.2941, allocations: 16.22 kB / 1.021 GB, free: 7.426 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.2943, allocations: 67.83 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.2944, allocations: 63.78 kB / 1.021 GB, free: 7.297 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.363e-05/0.2944, allocations: 12 kB / 1.021 GB, free: 7.285 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.231e-05/0.2945, allocations: 27.98 kB / 1.021 GB, free: 7.258 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.969e-05/0.2946, allocations: 19.92 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.521e-05/0.2947, allocations: 59.77 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002532/0.2949, allocations: 147.5 kB / 1.022 GB, free: 7.035 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2949, allocations: 0 / 1.022 GB, free: 7.035 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.724e-06/0.2949, allocations: 0 / 1.022 GB, free: 7.035 MB / 0.795 GB Notification: Performance of Transformations before backend: time 9.728e-06/0.295, allocations: 0 / 1.022 GB, free: 7.035 MB / 0.795 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.0007965/0.2958, allocations: 452.7 kB / 1.022 GB, free: 6.535 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.2958, allocations: 8.922 kB / 1.022 GB, free: 6.527 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.963e-05/0.2959, allocations: 12.84 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.296, allocations: 180.2 kB / 1.022 GB, free: 6.301 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.296, allocations: 12.38 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.196e-05/0.2961, allocations: 8.375 kB / 1.022 GB, free: 6.281 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/0.2964, allocations: 102.1 kB / 1.022 GB, free: 6.176 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.2964, allocations: 192 / 1.022 GB, free: 6.176 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.2964, allocations: 3.938 kB / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2964, allocations: 0 / 1.022 GB, free: 6.172 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.2968, allocations: 95.91 kB / 1.022 GB, free: 6.078 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006705/0.2975, allocations: 384.5 kB / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002715/0.2977, allocations: 90.66 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.2979, allocations: 60.81 kB / 1.023 GB, free: 5.492 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.298, allocations: 3.984 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/0.2983, allocations: 119.3 kB / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.573e-06/0.2983, allocations: 0 / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0006585/0.2989, allocations: 213.4 kB / 1.023 GB, free: 5.145 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.299, allocations: 55.34 kB / 1.023 GB, free: 5.078 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.2991, allocations: 133.7 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.612e-05/0.2992, allocations: 33.7 kB / 1.023 GB, free: 4.898 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.032e-05/0.2992, allocations: 104.1 kB / 1.023 GB, free: 4.793 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.358e-05/0.2993, allocations: 27.56 kB / 1.024 GB, free: 4.766 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.2994, allocations: 49.69 kB / 1.024 GB, free: 4.711 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.2995, allocations: 322.8 kB / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.2998, allocations: 79.94 kB / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.3, allocations: 108.2 kB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.3005, allocations: 187.1 kB / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3005, allocations: 0 / 1.024 GB, free: 3.984 MB / 0.795 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006495/0.3011, allocations: 259.7 kB / 1.024 GB, free: 3.719 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.307e-05/0.3012, allocations: 37.69 kB / 1.025 GB, free: 3.676 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3012, allocations: 8.125 kB / 1.025 GB, free: 3.668 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.3012, allocations: 4 kB / 1.025 GB, free: 3.664 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.3014, allocations: 31.91 kB / 1.025 GB, free: 3.633 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3014, allocations: 0 / 1.025 GB, free: 3.633 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.3016, allocations: 39.86 kB / 1.025 GB, free: 3.594 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.98e-05/0.3017, allocations: 12 kB / 1.025 GB, free: 3.582 MB / 0.795 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.0001252/0.3018, allocations: 145.6 kB / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.029e-05/0.3018, allocations: 7.906 kB / 1.025 GB, free: 3.422 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000447/0.3023, allocations: 165.9 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3023, allocations: 4 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3023, allocations: 0 / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3023, allocations: 0 / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006537/0.303, allocations: 454.9 kB / 1.025 GB, free: 2.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.303, allocations: 4 kB / 1.025 GB, free: 2.746 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.3031, allocations: 15.92 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.3031, allocations: 4 kB / 1.025 GB, free: 2.727 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.3031, allocations: 3.984 kB / 1.025 GB, free: 2.723 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3031, allocations: 0 / 1.025 GB, free: 2.723 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3031, allocations: 7.938 kB / 1.025 GB, free: 2.715 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004822/0.3036, allocations: 259.3 kB / 1.026 GB, free: 2.445 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.969e-05/0.3037, allocations: 85.02 kB / 1.026 GB, free: 2.344 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.3037, allocations: 0 / 1.026 GB, free: 2.344 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.3038, allocations: 23.92 kB / 1.026 GB, free: 2.32 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.458e-05/0.3039, allocations: 19.97 kB / 1.026 GB, free: 2.301 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.3039, allocations: 4 kB / 1.026 GB, free: 2.297 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.344e-05/0.304, allocations: 93.02 kB / 1.026 GB, free: 2.207 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.683e-06/0.304, allocations: 0 / 1.026 GB, free: 2.207 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003154/0.3044, allocations: 44 kB / 1.026 GB, free: 2.164 MB / 0.795 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.0002084/0.3046, allocations: 107.2 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005628/0.3051, allocations: 239.2 kB / 1.026 GB, free: 1.805 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3052, allocations: 0 / 1.026 GB, free: 1.805 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002044/0.3054, allocations: 71.88 kB / 1.026 GB, free: 1.734 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.3057, allocations: 17.97 kB / 1.026 GB, free: 1.719 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004574/0.3061, allocations: 195.3 kB / 1.026 GB, free: 1.5 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.3066, allocations: 0.6963 MB / 1.027 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 5.304e-05/0.3066, allocations: 8.562 kB / 1.027 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.285e-05/0.3067, allocations: 23.42 kB / 1.027 GB, free: 0.7461 MB / 0.795 GB Notification: Performance of SimCode: time 3.1e-07/0.3067, allocations: 0 / 1.027 GB, free: 0.7461 MB / 0.795 GB Notification: Performance of Templates: time 0.005062/0.3117, allocations: 1.917 MB / 1.029 GB, free: 14.85 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches