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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_9_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.005682/0.005682, allocations: 105.4 kB / 15.74 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.001256/0.001256, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.426/1.426, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.349/2.349, allocations: 390.3 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 59.91 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9686/0.9701, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002067/0.9722, allocations: 0.8157 MB / 1.088 GB, free: 4.742 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.9737, allocations: 1.203 MB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.908e-05/0.9738, allocations: 1.094 kB / 1.089 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.452e-05/0.9739, allocations: 9 kB / 1.089 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001018/0.974, allocations: 15.78 kB / 1.089 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005993/0.9746, allocations: 151.2 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002495/0.9749, allocations: 156.6 kB / 1.09 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.975, allocations: 26 kB / 1.09 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.9751, allocations: 63.7 kB / 1.09 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001384/0.9752, allocations: 63.58 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.771e-05/0.9753, allocations: 13.59 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.801e-05/0.9754, allocations: 27.56 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.686e-05/0.9754, allocations: 27.11 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.9755, allocations: 52.92 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003007/0.9758, allocations: 144.7 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.9759, allocations: 5.562 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/0.9759, allocations: 4 kB / 1.09 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.9759, allocations: 0 / 1.09 GB, free: 3.52 MB / 0.8575 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.0008026/0.9767, allocations: 442.6 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/0.9767, allocations: 9.312 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.9768, allocations: 38.98 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.15e-05/0.9769, allocations: 12.17 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.977, allocations: 182.1 kB / 1.091 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.977, allocations: 10.2 kB / 1.091 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.977, allocations: 12.66 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003368/0.9774, allocations: 100.5 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.9774, allocations: 3.938 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.9774, allocations: 2.172 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.9774, allocations: 2.094 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003571/0.9778, allocations: 90.89 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006741/0.9785, allocations: 380.3 kB / 1.091 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.9788, allocations: 95.88 kB / 1.091 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.979, allocations: 61.92 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.979, allocations: 5.562 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003849/0.9794, allocations: 114.3 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.793e-06/0.9794, allocations: 0 / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.000763/0.9802, allocations: 219.3 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.9803, allocations: 54.77 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.735e-05/0.9804, allocations: 129.9 kB / 1.092 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.9804, allocations: 33.88 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.9805, allocations: 107 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.383e-05/0.9805, allocations: 27.86 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.453e-05/0.9806, allocations: 46.16 kB / 1.092 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.658e-05/0.9807, allocations: 325.2 kB / 1.093 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.981, allocations: 77.77 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.9813, allocations: 115.7 kB / 1.093 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004674/0.9817, allocations: 181.9 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.9817, allocations: 1.125 kB / 1.093 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006964/0.9824, allocations: 271.6 kB / 1.093 GB, free: 1.219 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.339e-05/0.9825, allocations: 34.8 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.9825, allocations: 2.453 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.986e-05/0.9825, allocations: 5.656 kB / 1.093 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.9827, allocations: 28.84 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.9827, allocations: 1.641 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.983, allocations: 48.88 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.983, allocations: 8.656 kB / 1.093 GB, free: 1.164 MB / 0.8575 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.0001121/0.9832, allocations: 131.6 kB / 1.093 GB, free: 1.035 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.112e-05/0.9832, allocations: 8.281 kB / 1.093 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005226/0.9837, allocations: 170.4 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.9837, allocations: 1.938 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.9837, allocations: 0.75 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.9837, allocations: 1.922 kB / 1.094 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006824/0.9844, allocations: 459.7 kB / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.9844, allocations: 0 / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.9846, allocations: 17.33 kB / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.9846, allocations: 0.7812 kB / 1.094 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.9846, allocations: 11.02 kB / 1.094 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.9846, allocations: 4.75 kB / 1.094 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.9846, allocations: 5.125 kB / 1.094 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004719/0.9851, allocations: 254.1 kB / 1.094 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.976e-05/0.9851, allocations: 85.12 kB / 1.094 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.9852, allocations: 9.625 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.9853, allocations: 16.59 kB / 1.094 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.9854, allocations: 15.67 kB / 1.094 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.9854, allocations: 4.625 kB / 1.094 GB, free: 312 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.886e-05/0.9855, allocations: 104.4 kB / 1.095 GB, free: 224 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9855, allocations: 0.8125 kB / 1.095 GB, free: 224 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000296/0.9858, allocations: 30.8 kB / 1.095 GB, free: 220 kB / 0.8575 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.0008771/0.9867, allocations: 0.8041 MB / 1.095 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006475/0.9873, allocations: 239.5 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.9873, allocations: 0 / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002359/0.9876, allocations: 67.89 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.9879, allocations: 15.28 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003242/0.9911, allocations: 1.918 MB / 1.098 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.9915, allocations: 0.6945 MB / 1.098 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.524e-05/0.9915, allocations: 13.33 kB / 1.098 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.082e-05/0.9916, allocations: 28.91 kB / 1.098 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of SimCode: time 1.122e-06/0.9916, allocations: 0 / 1.098 GB, free: 13.15 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02387/1.015, allocations: 3.171 MB / 1.101 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.677/8.692, allocations: 12.41 kB / 1.101 GB, free: 12.65 MB / 0.8731 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv","/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) "Error: Could not read variable zeroCrossing.u in file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.u from file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable zeroCrossing.enable in file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.enable from file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_9_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