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.001565/0.001565, allocations: 103.4 kB / 16.35 MB, free: 6.289 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.001625/0.001625, allocations: 193.4 kB / 17.29 MB, free: 5.863 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.389/1.389, 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 10.1.0-maint.10.0.x/package.mo): time 2.505/2.505, allocations: 437.1 MB / 0.7112 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 64.75 kB / 0.8707 GB, free: 1.426 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3157, allocations: 151.6 MB / 1.019 GB, free: 9.828 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002237/0.318, allocations: 0.8242 MB / 1.02 GB, free: 9 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3196, allocations: 1.204 MB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.045e-05/0.3197, allocations: 7.938 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.457e-05/0.3198, allocations: 7.938 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.953e-05/0.3199, allocations: 15.84 kB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005354/0.3204, allocations: 149.2 kB / 1.021 GB, free: 7.609 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002025/0.3206, allocations: 163.7 kB / 1.021 GB, free: 7.449 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.3207, allocations: 24.22 kB / 1.021 GB, free: 7.426 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.839e-05/0.3208, allocations: 55.89 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.321, allocations: 63.73 kB / 1.021 GB, free: 7.309 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.321, allocations: 16 kB / 1.021 GB, free: 7.293 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.036e-05/0.3211, allocations: 27.97 kB / 1.021 GB, free: 7.266 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.703e-05/0.3211, allocations: 19.98 kB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.619e-05/0.3212, allocations: 59.77 kB / 1.021 GB, free: 7.188 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.3214, allocations: 151.5 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3214, allocations: 0 / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3214, allocations: 0 / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3214, allocations: 0 / 1.021 GB, free: 7.039 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.0006685/0.3221, allocations: 448.8 kB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.3222, allocations: 8.031 kB / 1.022 GB, free: 6.535 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.3222, allocations: 16.84 kB / 1.022 GB, free: 6.52 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.3223, allocations: 172.2 kB / 1.022 GB, free: 6.312 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.3224, allocations: 4.375 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.3224, allocations: 16.38 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.3227, allocations: 94.12 kB / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.3227, allocations: 192 / 1.022 GB, free: 6.195 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.3227, allocations: 11.92 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.475e-06/0.3227, allocations: 4 kB / 1.022 GB, free: 6.18 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.3231, allocations: 91.91 kB / 1.022 GB, free: 6.09 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006761/0.3237, allocations: 388.4 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002706/0.324, allocations: 102.6 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.3242, allocations: 56.81 kB / 1.023 GB, free: 5.492 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.3242, allocations: 0 / 1.023 GB, free: 5.492 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003325/0.3246, allocations: 123.2 kB / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.343e-06/0.3246, allocations: 0 / 1.023 GB, free: 5.359 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0006495/0.3252, allocations: 209.4 kB / 1.023 GB, free: 5.148 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.3253, allocations: 55.41 kB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3254, allocations: 125.7 kB / 1.023 GB, free: 4.949 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.515e-05/0.3255, allocations: 37.7 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.464e-05/0.3255, allocations: 96.12 kB / 1.023 GB, free: 4.809 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.3256, allocations: 35.53 kB / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.814e-05/0.3257, allocations: 45.7 kB / 1.024 GB, free: 4.723 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3258, allocations: 326.8 kB / 1.024 GB, free: 4.395 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.326, allocations: 79.88 kB / 1.024 GB, free: 4.316 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/0.3263, allocations: 120.2 kB / 1.024 GB, free: 4.184 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.3267, allocations: 179 kB / 1.024 GB, free: 3.988 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3267, allocations: 0 / 1.024 GB, free: 3.988 MB / 0.795 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005916/0.3273, allocations: 263.9 kB / 1.024 GB, free: 3.719 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.103e-05/0.3274, allocations: 41.81 kB / 1.025 GB, free: 3.672 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3274, allocations: 4 kB / 1.025 GB, free: 3.668 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.3274, allocations: 0 / 1.025 GB, free: 3.668 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.3275, allocations: 23.98 kB / 1.025 GB, free: 3.645 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3276, allocations: 0 / 1.025 GB, free: 3.645 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000224/0.3278, allocations: 43.86 kB / 1.025 GB, free: 3.602 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.793e-05/0.3278, allocations: 11.98 kB / 1.025 GB, free: 3.59 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.0001083/0.3279, allocations: 138.3 kB / 1.025 GB, free: 3.445 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.328, allocations: 7.906 kB / 1.025 GB, free: 3.438 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004347/0.3284, allocations: 169.9 kB / 1.025 GB, free: 3.266 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3284, allocations: 4 kB / 1.025 GB, free: 3.262 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3284, allocations: 0 / 1.025 GB, free: 3.262 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.3284, allocations: 4 kB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006047/0.329, allocations: 454.8 kB / 1.025 GB, free: 2.758 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3291, allocations: 0 / 1.025 GB, free: 2.758 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.915e-05/0.3292, allocations: 23.91 kB / 1.025 GB, free: 2.734 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.3292, allocations: 0 / 1.025 GB, free: 2.734 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.3292, allocations: 4 kB / 1.025 GB, free: 2.73 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3292, allocations: 4 kB / 1.025 GB, free: 2.727 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.3292, allocations: 7.938 kB / 1.025 GB, free: 2.719 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004128/0.3296, allocations: 251.4 kB / 1.026 GB, free: 2.457 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.446e-05/0.3297, allocations: 81.02 kB / 1.026 GB, free: 2.359 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/0.3297, allocations: 12 kB / 1.026 GB, free: 2.348 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.3298, allocations: 15.91 kB / 1.026 GB, free: 2.332 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.813e-05/0.3299, allocations: 15.98 kB / 1.026 GB, free: 2.316 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.3299, allocations: 4 kB / 1.026 GB, free: 2.312 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.153e-05/0.33, allocations: 97.89 kB / 1.026 GB, free: 2.219 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.33, allocations: 7.875 kB / 1.026 GB, free: 2.211 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002833/0.3303, allocations: 44.05 kB / 1.026 GB, free: 2.168 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.0002092/0.3305, allocations: 112.9 kB / 1.026 GB, free: 2.051 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005521/0.3311, allocations: 231.2 kB / 1.026 GB, free: 1.812 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3311, allocations: 0 / 1.026 GB, free: 1.812 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.3313, allocations: 67.89 kB / 1.026 GB, free: 1.746 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.3316, allocations: 20.23 kB / 1.026 GB, free: 1.727 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004472/0.3321, allocations: 195.4 kB / 1.026 GB, free: 1.508 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.3323, allocations: 0.6969 MB / 1.027 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 5.032e-05/0.3324, allocations: 12.55 kB / 1.027 GB, free: 0.7734 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.3324, allocations: 15.44 kB / 1.027 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of SimCode: time 2.3e-07/0.3324, allocations: 0 / 1.027 GB, free: 0.7578 MB / 0.795 GB Notification: Performance of Templates: time 0.004595/0.337, allocations: 1.913 MB / 1.029 GB, free: 14.87 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 cvode -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