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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007092/0.007092, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.001379/0.001379, allocations: 189.6 kB / 16.67 MB, free: 5.934 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.439/2.439, allocations: 437 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 68.12 kB / 1.018 GB, free: 9.879 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.006/1.007, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002475/1.01, allocations: 0.8191 MB / 1.167 GB, free: 2.949 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00175/1.011, allocations: 1.204 MB / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.384e-05/1.011, allocations: 0 / 1.168 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.106e-05/1.012, allocations: 7.875 kB / 1.168 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.643e-05/1.012, allocations: 19.86 kB / 1.168 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005772/1.012, allocations: 155.2 kB / 1.168 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002097/1.012, allocations: 151.7 kB / 1.168 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.834e-05/1.013, allocations: 28.22 kB / 1.169 GB, free: 1.379 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/1.013, allocations: 63.81 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/1.013, allocations: 67.73 kB / 1.169 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/1.013, allocations: 12 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.482e-05/1.013, allocations: 27.98 kB / 1.169 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/1.013, allocations: 19.97 kB / 1.169 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.045e-05/1.013, allocations: 59.77 kB / 1.169 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002273/1.013, allocations: 143.2 kB / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/1.013, allocations: 0 / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.743e-06/1.013, allocations: 0 / 1.169 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.041e-06/1.013, allocations: 4 kB / 1.169 GB, free: 0.9922 MB / 0.8887 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.0007353/1.014, allocations: 448.7 kB / 1.169 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/1.014, allocations: 16.86 kB / 1.169 GB, free: 492 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.425e-05/1.014, allocations: 34.73 kB / 1.169 GB, free: 448 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.606e-05/1.014, allocations: 12.89 kB / 1.169 GB, free: 436 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/1.014, allocations: 188.2 kB / 1.17 GB, free: 208 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/1.014, allocations: 4.375 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/1.014, allocations: 12.38 kB / 1.17 GB, free: 192 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/1.015, allocations: 98.94 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/1.015, allocations: 3.938 kB / 1.17 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/1.015, allocations: 4 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/1.015, allocations: 0 / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003496/1.015, allocations: 87.89 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006035/1.016, allocations: 384.6 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/1.016, allocations: 98.53 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/1.016, allocations: 56.81 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/1.016, allocations: 4 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003583/1.017, allocations: 119.3 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/1.017, allocations: 0 / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0006851/1.017, allocations: 213.4 kB / 1.171 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/1.017, allocations: 63.34 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/1.017, allocations: 123.3 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.467e-05/1.018, allocations: 33.7 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.922e-05/1.018, allocations: 104.1 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.605e-05/1.018, allocations: 27.75 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.105e-05/1.018, allocations: 53.69 kB / 1.171 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001322/1.018, allocations: 326.8 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/1.018, allocations: 75.94 kB / 1.171 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002508/1.018, allocations: 114.3 kB / 1.171 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004225/1.019, allocations: 192.3 kB / 1.172 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/1.019, allocations: 4 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006223/1.02, allocations: 255.2 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/1.02, allocations: 37.7 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/1.02, allocations: 4 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/1.02, allocations: 0 / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/1.02, allocations: 32.03 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/1.02, allocations: 0 / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002466/1.02, allocations: 47.84 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/1.02, allocations: 8 kB / 1.172 GB, free: 13.49 MB / 0.9044 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.0001247/1.02, allocations: 133.7 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/1.02, allocations: 7.953 kB / 1.172 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004675/1.021, allocations: 173.9 kB / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/1.021, allocations: 7.938 kB / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/1.021, allocations: 0 / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/1.021, allocations: 0 / 1.172 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000699/1.021, allocations: 458.2 kB / 1.173 GB, free: 12.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/1.021, allocations: 7.984 kB / 1.173 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001025/1.022, allocations: 15.98 kB / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/1.022, allocations: 0 / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.391e-05/1.022, allocations: 7.984 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/1.022, allocations: 3.938 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.022, allocations: 0 / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004529/1.022, allocations: 255.3 kB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.569e-05/1.022, allocations: 89 kB / 1.173 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/1.022, allocations: 7.938 kB / 1.173 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/1.022, allocations: 11.98 kB / 1.173 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/1.022, allocations: 19.97 kB / 1.173 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.079e-05/1.022, allocations: 8 kB / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.053e-05/1.022, allocations: 96.77 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.523e-06/1.022, allocations: 0 / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002962/1.023, allocations: 35.94 kB / 1.173 GB, free: 12.07 MB / 0.9044 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.000863/1.024, allocations: 0.7982 MB / 1.174 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005583/1.024, allocations: 240.1 kB / 1.174 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/1.024, allocations: 0 / 1.174 GB, free: 11 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001996/1.024, allocations: 72.14 kB / 1.174 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/1.025, allocations: 16.42 kB / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/1.027, allocations: 1.915 MB / 1.176 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/1.028, allocations: 0.7001 MB / 1.177 GB, free: 8.16 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.418e-05/1.028, allocations: 8.562 kB / 1.177 GB, free: 8.152 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.447e-05/1.028, allocations: 27.42 kB / 1.177 GB, free: 8.125 MB / 0.9044 GB Notification: Performance of SimCode: time 3.31e-07/1.028, allocations: 4 kB / 1.177 GB, free: 8.121 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02032/1.048, allocations: 3.184 MB / 1.18 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.842, allocations: 10.31 kB / 1.18 GB, free: 5.043 MB / 0.9044 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv","/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) "Error: Could not read variable zeroCrossing.u in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.u from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable zeroCrossing.enable in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.enable from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! " Variables in the reference:time,zeroCrossing.u,zeroCrossing.enable,triggeredSampler.u,triggeredSampler.y Variables in the result:time,ramp1.y,ramp2.y,sin1.y,triggeredSampler.y,booPul1.period