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.002681/0.002681, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002174/0.002174, allocations: 192 kB / 16.67 MB, free: 6.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.449/2.449, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 4.889/4.889, allocations: 437 MB / 0.7105 GB, free: 5 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002963/0.002963, allocations: 67.91 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6876/0.6906, allocations: 151.6 MB / 1.166 GB, free: 7.293 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.005459/0.6962, allocations: 0.8117 MB / 1.167 GB, free: 6.477 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.004306/0.7006, allocations: 1.19 MB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.7008, allocations: 7.938 kB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 8.268e-05/0.701, allocations: 7.922 kB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.7012, allocations: 15.86 kB / 1.168 GB, free: 5.238 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.7025, allocations: 151.4 kB / 1.168 GB, free: 5.094 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004247/0.7029, allocations: 163.6 kB / 1.168 GB, free: 4.934 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002301/0.7032, allocations: 24.23 kB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002076/0.7034, allocations: 63.81 kB / 1.169 GB, free: 4.848 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.7036, allocations: 59.8 kB / 1.169 GB, free: 4.789 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.89e-05/0.7037, allocations: 16 kB / 1.169 GB, free: 4.773 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.7038, allocations: 27.92 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 6.749e-05/0.7039, allocations: 23.91 kB / 1.169 GB, free: 4.723 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.704, allocations: 55.78 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.7045, allocations: 155.6 kB / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.7045, allocations: 0 / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.366e-06/0.7045, allocations: 0 / 1.169 GB, free: 4.516 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.146e-05/0.7045, allocations: 0 / 1.169 GB, free: 4.516 MB / 0.92 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.0013/0.7059, allocations: 448.8 kB / 1.169 GB, free: 4.02 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.783e-05/0.7059, allocations: 8.031 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.634e-05/0.706, allocations: 38.75 kB / 1.169 GB, free: 3.965 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.685e-05/0.7061, allocations: 16.88 kB / 1.169 GB, free: 3.949 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002753/0.7064, allocations: 172.3 kB / 1.17 GB, free: 3.742 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.7064, allocations: 8.375 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.7065, allocations: 8.375 kB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004397/0.707, allocations: 102.1 kB / 1.17 GB, free: 3.621 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.707, allocations: 3.938 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.707, allocations: 7.984 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.707, allocations: 3.984 kB / 1.17 GB, free: 3.605 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.7076, allocations: 83.92 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.7086, allocations: 392.5 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.7091, allocations: 90.64 kB / 1.17 GB, free: 2.992 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002702/0.7093, allocations: 64.81 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 4.221e-05/0.7094, allocations: 0 / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006159/0.71, allocations: 123.2 kB / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.863e-06/0.71, allocations: 0 / 1.17 GB, free: 2.793 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.001016/0.7111, allocations: 213.5 kB / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.7111, allocations: 51.41 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.7113, allocations: 129.8 kB / 1.171 GB, free: 2.379 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.982e-05/0.7114, allocations: 33.7 kB / 1.171 GB, free: 2.34 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.7115, allocations: 104 kB / 1.171 GB, free: 2.234 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.817e-05/0.7116, allocations: 27.8 kB / 1.171 GB, free: 2.207 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.7118, allocations: 57.64 kB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002389/0.712, allocations: 322.8 kB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.7124, allocations: 79.94 kB / 1.171 GB, free: 1.742 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.7128, allocations: 108.2 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007211/0.7135, allocations: 193.1 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.7136, allocations: 4 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008932/0.7145, allocations: 263 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.924e-05/0.7146, allocations: 37.7 kB / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.7146, allocations: 0 / 1.172 GB, free: 1.098 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.636e-05/0.7146, allocations: 11.92 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.7148, allocations: 20.11 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.7148, allocations: 7.984 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002741/0.7151, allocations: 43.84 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.7152, allocations: 15.98 kB / 1.172 GB, free: 1 MB / 0.92 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.0002542/0.7154, allocations: 129.7 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.278e-05/0.7155, allocations: 7.953 kB / 1.172 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006644/0.7162, allocations: 170 kB / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.7162, allocations: 0 / 1.172 GB, free: 0.6836 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.7162, allocations: 3.938 kB / 1.172 GB, free: 0.6797 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.7162, allocations: 4 kB / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.7172, allocations: 450.9 kB / 1.173 GB, free: 184 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.7172, allocations: 0 / 1.173 GB, free: 184 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.7174, allocations: 23.91 kB / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.7174, allocations: 0 / 1.173 GB, free: 160 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.7174, allocations: 4 kB / 1.173 GB, free: 156 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.7174, allocations: 3.938 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.7175, allocations: 0 / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007622/0.7182, allocations: 263.4 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.7184, allocations: 85.06 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.7184, allocations: 3.938 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.7186, allocations: 19.97 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.7187, allocations: 15.98 kB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.7187, allocations: 4 kB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000121/0.7189, allocations: 95.27 kB / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.41e-07/0.7189, allocations: 0 / 1.173 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0005148/0.7194, allocations: 35.98 kB / 1.173 GB, free: 15.6 MB / 0.9356 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.001405/0.7208, allocations: 0.808 MB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008131/0.7217, allocations: 235.2 kB / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.7217, allocations: 0 / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.7219, allocations: 72.14 kB / 1.174 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.7224, allocations: 21.7 kB / 1.174 GB, free: 14.44 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005183/0.7276, allocations: 1.92 MB / 1.176 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006074/0.7282, allocations: 0.6963 MB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.000107/0.7284, allocations: 4.562 kB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.7285, allocations: 31.42 kB / 1.177 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of SimCode: time 1.132e-06/0.7285, allocations: 0 / 1.177 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08371/0.8123, allocations: 3.175 MB / 1.18 GB, free: 8.582 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.37/15.19, allocations: 14.91 kB / 1.18 GB, free: 8.57 MB / 0.9356 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