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.007996/0.007996, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.002395/0.002395, allocations: 188.6 kB / 16.67 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.471/2.471, allocations: 437.1 MB / 0.7105 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 68.11 kB / 1.018 GB, free: 9.852 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8945/0.896, allocations: 151.6 MB / 1.166 GB, free: 3.734 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002219/0.8982, allocations: 0.8152 MB / 1.167 GB, free: 2.922 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001681/0.8999, allocations: 1.208 MB / 1.168 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.667e-05/0.9, allocations: 4 kB / 1.168 GB, free: 1.695 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 5.064e-05/0.9001, allocations: 11.88 kB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.541e-05/0.9002, allocations: 11.86 kB / 1.168 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.9008, allocations: 155.7 kB / 1.168 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.9011, allocations: 159.7 kB / 1.168 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.9012, allocations: 24.2 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000134/0.9013, allocations: 63.83 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.9015, allocations: 59.8 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.9015, allocations: 12 kB / 1.169 GB, free: 1.211 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.595e-05/0.9016, allocations: 31.98 kB / 1.169 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.235e-05/0.9017, allocations: 23.91 kB / 1.169 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.469e-05/0.9018, allocations: 59.77 kB / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002266/0.902, allocations: 141.8 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.902, allocations: 0 / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.513e-06/0.902, allocations: 0 / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.902, allocations: 0 / 1.169 GB, free: 0.9609 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.0007062/0.9027, allocations: 448.8 kB / 1.169 GB, free: 476 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.9028, allocations: 12.92 kB / 1.169 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.662e-05/0.9028, allocations: 38.75 kB / 1.169 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.9029, allocations: 12.84 kB / 1.169 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.903, allocations: 188.1 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.903, allocations: 8.375 kB / 1.17 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.107e-05/0.9031, allocations: 8.375 kB / 1.17 GB, free: 160 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.9034, allocations: 94.19 kB / 1.17 GB, free: 60 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.9034, allocations: 3.938 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.9034, allocations: 4 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.9034, allocations: 4 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003441/0.9038, allocations: 93.3 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006032/0.9044, allocations: 372.6 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.9047, allocations: 98.59 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.9049, allocations: 60.81 kB / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.9049, allocations: 0 / 1.17 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003437/0.9053, allocations: 127.2 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.964e-06/0.9053, allocations: 0 / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0006553/0.9059, allocations: 209.4 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.906, allocations: 55.41 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.9061, allocations: 134 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.9061, allocations: 29.7 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.457e-05/0.9062, allocations: 107.9 kB / 1.171 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.988e-05/0.9063, allocations: 23.72 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.77e-05/0.9064, allocations: 45.69 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.9065, allocations: 322.8 kB / 1.171 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/0.9067, allocations: 79.94 kB / 1.171 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.907, allocations: 114.5 kB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003968/0.9074, allocations: 187.1 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.9074, allocations: 3.938 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000599/0.908, allocations: 268.5 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.908, allocations: 33.7 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.9081, allocations: 0 / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.9081, allocations: 4 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.9082, allocations: 27.91 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.9083, allocations: 4 kB / 1.172 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.9085, allocations: 47.91 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.9085, allocations: 12 kB / 1.172 GB, free: 13.46 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.0001067/0.9086, allocations: 129.7 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.226e-05/0.9087, allocations: 7.906 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004663/0.9091, allocations: 169.9 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.9091, allocations: 4 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.9092, allocations: 0 / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.9092, allocations: 4 kB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000691/0.9099, allocations: 458.1 kB / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.9099, allocations: 0 / 1.173 GB, free: 12.63 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.91, allocations: 23.98 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.91, allocations: 3.938 kB / 1.173 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.91, allocations: 7.984 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.91, allocations: 3.938 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.9101, allocations: 0 / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004678/0.9105, allocations: 260.1 kB / 1.173 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.072e-05/0.9106, allocations: 85.02 kB / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.9106, allocations: 3.938 kB / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.9107, allocations: 15.98 kB / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.041e-05/0.9108, allocations: 11.97 kB / 1.173 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.9108, allocations: 8 kB / 1.173 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.861e-05/0.9109, allocations: 96.14 kB / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/0.9109, allocations: 0 / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000295/0.9112, allocations: 32 kB / 1.173 GB, free: 12.06 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.0009209/0.9122, allocations: 0.8099 MB / 1.174 GB, free: 11.22 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006107/0.9128, allocations: 239.2 kB / 1.174 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.9128, allocations: 0 / 1.174 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.913, allocations: 71.83 kB / 1.174 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.9134, allocations: 20.23 kB / 1.174 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.9161, allocations: 1.9 MB / 1.176 GB, free: 8.875 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.9165, allocations: 0.704 MB / 1.177 GB, free: 8.145 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.798e-05/0.9166, allocations: 8.547 kB / 1.177 GB, free: 8.137 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.621e-05/0.9167, allocations: 35.42 kB / 1.177 GB, free: 8.102 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.9167, allocations: 0 / 1.177 GB, free: 8.102 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02245/0.9391, allocations: 3.182 MB / 1.18 GB, free: 5.035 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/8.439, allocations: 10.25 kB / 1.18 GB, free: 5.027 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.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) "" Variables in the reference:time,zeroCrossing.u,zeroCrossing.enable,triggeredSampler.u,triggeredSampler.y Variables in the result:booPul1.period,booPul1.shift,booPul1.width,booPul1.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,sin1.u,sin1.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,zeroCrossing.enable,zeroCrossing.u,zeroCrossing.y