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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001078/0.001078, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007884/0.007884, allocations: 170 kB / 16.26 MB, free: 6.613 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.391/1.391, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.364/2.364, allocations: 390.9 MB / 0.6664 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004099/0.00041, allocations: 8 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8679/0.8684, allocations: 142.4 MB / 0.9552 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0008674/0.8693, allocations: 0.5241 MB / 0.9557 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.8704, allocations: 1.198 MB / 0.9569 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.919e-05/0.8705, allocations: 9.281 kB / 0.9569 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.755e-05/0.8705, allocations: 0 / 0.9569 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.931e-05/0.8706, allocations: 13.3 kB / 0.9569 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000412/0.871, allocations: 130.1 kB / 0.957 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000127/0.8712, allocations: 135.3 kB / 0.9571 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.8713, allocations: 22.03 kB / 0.9572 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.722e-05/0.8714, allocations: 60.42 kB / 0.9572 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.613e-05/0.8714, allocations: 54.14 kB / 0.9573 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.301e-05/0.8715, allocations: 6.969 kB / 0.9573 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.41e-05/0.8716, allocations: 12.28 kB / 0.9573 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.154e-05/0.8716, allocations: 16.05 kB / 0.9573 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.719e-05/0.8717, allocations: 81.8 kB / 0.9574 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.8718, allocations: 132.3 kB / 0.9575 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.8718, allocations: 0 / 0.9575 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.174e-06/0.8718, allocations: 0 / 0.9575 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.957e-06/0.8718, allocations: 3.938 kB / 0.9575 GB, free: 5.871 MB / 0.7169 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.0005353/0.8724, allocations: 432.7 kB / 0.9579 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.8724, allocations: 8.812 kB / 0.9579 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.964e-05/0.8725, allocations: 37.22 kB / 0.958 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.178e-05/0.8725, allocations: 15.59 kB / 0.958 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.385e-05/0.8726, allocations: 185.5 kB / 0.9582 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.8726, allocations: 9.844 kB / 0.9582 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.8726, allocations: 7.844 kB / 0.9582 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002747/0.8729, allocations: 106.5 kB / 0.9583 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.8729, allocations: 9.062 kB / 0.9583 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.873, allocations: 5.156 kB / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.873, allocations: 1.438 kB / 0.9583 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003272/0.8733, allocations: 114.6 kB / 0.9584 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004525/0.8738, allocations: 375.8 kB / 0.9588 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002538/0.874, allocations: 112.1 kB / 0.9589 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.8742, allocations: 71.31 kB / 0.9589 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.8742, allocations: 5.359 kB / 0.9589 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.8745, allocations: 139.3 kB / 0.9591 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.342e-06/0.8745, allocations: 0 / 0.9591 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006425/0.8752, allocations: 242.8 kB / 0.9593 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.8752, allocations: 53.72 kB / 0.9594 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.793e-05/0.8753, allocations: 131.9 kB / 0.9595 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.8753, allocations: 30.17 kB / 0.9595 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.047e-05/0.8754, allocations: 107.8 kB / 0.9596 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.8754, allocations: 24.88 kB / 0.9596 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.8754, allocations: 24.95 kB / 0.9597 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.334e-05/0.8755, allocations: 326.1 kB / 0.96 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.8757, allocations: 90.53 kB / 0.9601 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.876, allocations: 124.9 kB / 0.9602 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004016/0.8764, allocations: 210.5 kB / 0.9604 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8764, allocations: 1 kB / 0.9604 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005536/0.877, allocations: 287.8 kB / 0.9607 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.877, allocations: 41.89 kB / 0.9607 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.877, allocations: 5.5 kB / 0.9607 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.877, allocations: 1.375 kB / 0.9607 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.8772, allocations: 31.16 kB / 0.9607 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.8772, allocations: 1.375 kB / 0.9607 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.8774, allocations: 62.39 kB / 0.9608 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.8775, allocations: 11.95 kB / 0.9608 GB, free: 3.16 MB / 0.7169 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 8.21e-05/0.8775, allocations: 130.5 kB / 0.9609 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.8776, allocations: 7.469 kB / 0.9609 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.878, allocations: 190.2 kB / 0.9611 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.878, allocations: 5.031 kB / 0.9611 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.878, allocations: 0.9062 kB / 0.9611 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.878, allocations: 3.984 kB / 0.9611 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/0.8786, allocations: 477.1 kB / 0.9616 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.8786, allocations: 0 / 0.9616 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.8787, allocations: 25.06 kB / 0.9616 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.8787, allocations: 0 / 0.9616 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.8788, allocations: 13.97 kB / 0.9616 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.8788, allocations: 0 / 0.9616 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.8788, allocations: 4.906 kB / 0.9616 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004208/0.8792, allocations: 278.8 kB / 0.9619 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.107e-05/0.8792, allocations: 84.02 kB / 0.962 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.8792, allocations: 4.969 kB / 0.962 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.8794, allocations: 24.16 kB / 0.962 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.104e-05/0.8794, allocations: 17.86 kB / 0.962 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.8795, allocations: 7.547 kB / 0.962 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.059e-05/0.8795, allocations: 98.3 kB / 0.9621 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8795, allocations: 0 / 0.9621 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002523/0.8798, allocations: 25.94 kB / 0.9621 GB, free: 2.074 MB / 0.7169 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.0006224/0.8804, allocations: 0.8264 MB / 0.963 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005079/0.8809, allocations: 259.1 kB / 0.9632 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.8809, allocations: 0 / 0.9632 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.8811, allocations: 77.3 kB / 0.9633 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.8814, allocations: 25.98 kB / 0.9633 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.8836, allocations: 1.986 MB / 0.9652 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.8838, allocations: 0.7016 MB / 0.9659 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.916e-05/0.8839, allocations: 9.891 kB / 0.9659 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.709e-05/0.884, allocations: 29.05 kB / 0.966 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of SimCode: time 2.2e-07/0.884, allocations: 0 / 0.966 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.9127, allocations: 2.759 MB / 0.9687 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002276/0.9129, allocations: 208 kB / 0.9689 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.678, allocations: 0 / 0.9689 GB, free: 13.19 MB / 0.7325 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches