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.001591/0.001591, allocations: 108 kB / 15.61 MB, free: 152 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.001876/0.001876, allocations: 195.3 kB / 16.53 MB, free: 6.699 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.38/1.38, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.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.328/2.328, allocations: 390.3 MB / 0.6647 GB, free: 268 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 63.89 kB / 0.8127 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6342/0.636, allocations: 140.4 MB / 0.9497 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002063/0.6381, allocations: 0.8019 MB / 0.9505 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.6393, allocations: 1.198 MB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.092e-05/0.6393, allocations: 1.125 kB / 0.9517 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.317e-05/0.6394, allocations: 11.86 kB / 0.9517 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.705e-05/0.6395, allocations: 13.08 kB / 0.9517 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004754/0.6399, allocations: 155.5 kB / 0.9519 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.6401, allocations: 150.8 kB / 0.952 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.6402, allocations: 26.19 kB / 0.952 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.941e-05/0.6403, allocations: 65.59 kB / 0.9521 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.73e-05/0.6404, allocations: 54.5 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.472e-05/0.6405, allocations: 13.16 kB / 0.9522 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.136e-05/0.6406, allocations: 27.95 kB / 0.9522 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.934e-05/0.6406, allocations: 24.03 kB / 0.9522 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.211e-05/0.6407, allocations: 60.03 kB / 0.9523 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.6408, allocations: 144.1 kB / 0.9524 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.6409, allocations: 0 / 0.9524 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.643e-06/0.6409, allocations: 0 / 0.9524 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.6409, allocations: 9.156 kB / 0.9524 GB, free: 7.062 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.0006371/0.6415, allocations: 446.6 kB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.6416, allocations: 8.875 kB / 0.9528 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.29e-05/0.6416, allocations: 32.75 kB / 0.9529 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.543e-05/0.6417, allocations: 20.98 kB / 0.9529 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.734e-05/0.6418, allocations: 172.5 kB / 0.9531 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.6418, allocations: 4.344 kB / 0.9531 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.6418, allocations: 13.31 kB / 0.9531 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.6421, allocations: 99.97 kB / 0.9532 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.6421, allocations: 3.938 kB / 0.9532 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.6421, allocations: 9.516 kB / 0.9532 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.6422, allocations: 1.812 kB / 0.9532 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003385/0.6425, allocations: 88.58 kB / 0.9533 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006308/0.6431, allocations: 390.5 kB / 0.9536 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.6435, allocations: 98.55 kB / 0.9537 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.6436, allocations: 56.78 kB / 0.9538 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.6437, allocations: 1.719 kB / 0.9538 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003469/0.644, allocations: 117 kB / 0.9539 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.553e-06/0.644, allocations: 4 kB / 0.9539 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.000684/0.6447, allocations: 206.2 kB / 0.9541 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.6448, allocations: 58.03 kB / 0.9542 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.363e-05/0.6449, allocations: 126.8 kB / 0.9543 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.656e-05/0.6449, allocations: 38.08 kB / 0.9543 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.976e-05/0.645, allocations: 100.7 kB / 0.9544 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.645, allocations: 32.5 kB / 0.9544 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.872e-05/0.6451, allocations: 48.67 kB / 0.9545 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.203e-05/0.6451, allocations: 325.3 kB / 0.9548 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.6454, allocations: 76.94 kB / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.6457, allocations: 119.7 kB / 0.955 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003936/0.6461, allocations: 181.7 kB / 0.9552 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.6461, allocations: 1.031 kB / 0.9552 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005861/0.6467, allocations: 262.2 kB / 0.9554 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.785e-05/0.6467, allocations: 46.39 kB / 0.9555 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.6467, allocations: 0 / 0.9555 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.6467, allocations: 7.516 kB / 0.9555 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.6469, allocations: 22.12 kB / 0.9555 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.6469, allocations: 0 / 0.9555 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.6471, allocations: 51.66 kB / 0.9555 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.379e-05/0.6472, allocations: 7.625 kB / 0.9555 GB, free: 4.363 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.681e-05/0.6473, allocations: 134.6 kB / 0.9557 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.051e-05/0.6473, allocations: 8.25 kB / 0.9557 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004435/0.6477, allocations: 165.5 kB / 0.9558 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.6478, allocations: 2.469 kB / 0.9558 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.6478, allocations: 3.938 kB / 0.9558 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.6478, allocations: 7.984 kB / 0.9558 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005847/0.6484, allocations: 442.6 kB / 0.9563 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.6484, allocations: 0 / 0.9563 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.6485, allocations: 23.38 kB / 0.9563 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.6485, allocations: 5.062 kB / 0.9563 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.6485, allocations: 5.25 kB / 0.9563 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.6485, allocations: 3.938 kB / 0.9563 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.6485, allocations: 4.906 kB / 0.9563 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004167/0.649, allocations: 251.3 kB / 0.9566 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.227e-05/0.649, allocations: 88.58 kB / 0.9566 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.649, allocations: 9.328 kB / 0.9566 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.6491, allocations: 10.95 kB / 0.9567 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.16e-05/0.6492, allocations: 17.98 kB / 0.9567 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.6492, allocations: 7.828 kB / 0.9567 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.936e-05/0.6493, allocations: 99.45 kB / 0.9568 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6493, allocations: 0 / 0.9568 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000275/0.6496, allocations: 38.28 kB / 0.9568 GB, free: 3.281 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.000622/0.6502, allocations: 0.8054 MB / 0.9576 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005137/0.6507, allocations: 241 kB / 0.9578 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6507, allocations: 0 / 0.9578 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.6509, allocations: 64.11 kB / 0.9579 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.6512, allocations: 25.2 kB / 0.9579 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.6534, allocations: 1.919 MB / 0.9598 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.79e-05/0.6535, allocations: 0.6976 MB / 0.9605 GB, free: 8 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.954e-05/0.6535, allocations: 5.969 kB / 0.9605 GB, free: 8 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.678e-05/0.6536, allocations: 29.47 kB / 0.9605 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of SimCode: time 2.91e-07/0.6536, allocations: 1.062 kB / 0.9605 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01968/0.6733, allocations: 3.14 MB / 0.9636 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.733/8.407, allocations: 6.047 kB / 0.9636 GB, free: 14.34 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