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.00184/0.00184, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001911/0.001912, allocations: 192.4 kB / 16.25 MB, free: 6.641 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.464/1.464, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.561/2.561, allocations: 390.2 MB / 0.6644 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 59.91 kB / 0.8122 GB, free: 14.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9282/0.9296, allocations: 140.4 MB / 0.9493 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002834/0.9325, allocations: 0.8624 MB / 0.9501 GB, free: 8.438 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001798/0.9343, allocations: 1.201 MB / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.9345, allocations: 1.625 kB / 0.9513 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.223e-05/0.9346, allocations: 3.938 kB / 0.9513 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.9348, allocations: 9.219 kB / 0.9513 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000778/0.9355, allocations: 141.8 kB / 0.9514 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000267/0.9358, allocations: 143 kB / 0.9516 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.936, allocations: 30 kB / 0.9516 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.9361, allocations: 65.92 kB / 0.9516 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.9363, allocations: 58.55 kB / 0.9517 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.9363, allocations: 16.78 kB / 0.9517 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.391e-05/0.9364, allocations: 28.48 kB / 0.9517 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.492e-05/0.9365, allocations: 23.25 kB / 0.9518 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.547e-05/0.9366, allocations: 56.06 kB / 0.9518 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002529/0.9368, allocations: 141.3 kB / 0.952 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.9368, allocations: 4 kB / 0.952 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.1e-06/0.9369, allocations: 0 / 0.952 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.818e-06/0.9369, allocations: 3.938 kB / 0.952 GB, free: 7.004 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.0008066/0.9377, allocations: 446.7 kB / 0.9524 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.9377, allocations: 10.19 kB / 0.9524 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.9378, allocations: 36.12 kB / 0.9524 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.033e-05/0.9379, allocations: 11.84 kB / 0.9524 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.938, allocations: 181.8 kB / 0.9526 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/0.938, allocations: 12.59 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.614e-05/0.9381, allocations: 8.625 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.9384, allocations: 98.69 kB / 0.9527 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.9384, allocations: 3.938 kB / 0.9527 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.9385, allocations: 2.125 kB / 0.9527 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.9385, allocations: 1.156 kB / 0.9527 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003803/0.9389, allocations: 91.34 kB / 0.9528 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007602/0.9396, allocations: 382.9 kB / 0.9532 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.94, allocations: 98 kB / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.9401, allocations: 62.81 kB / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.148e-05/0.9402, allocations: 1.312 kB / 0.9533 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003803/0.9406, allocations: 120.6 kB / 0.9535 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.663e-06/0.9406, allocations: 0 / 0.9535 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006849/0.9413, allocations: 211.1 kB / 0.9537 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.9413, allocations: 52.66 kB / 0.9537 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.63e-05/0.9414, allocations: 136.1 kB / 0.9538 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.9414, allocations: 32.48 kB / 0.9539 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.138e-05/0.9415, allocations: 101.5 kB / 0.954 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.9415, allocations: 27.58 kB / 0.954 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.459e-05/0.9416, allocations: 48.75 kB / 0.954 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.192e-05/0.9417, allocations: 325.1 kB / 0.9544 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.9419, allocations: 77.12 kB / 0.9544 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.9422, allocations: 111.2 kB / 0.9545 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004057/0.9426, allocations: 183.5 kB / 0.9547 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.9426, allocations: 0 / 0.9547 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006748/0.9433, allocations: 278.3 kB / 0.955 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.987e-05/0.9434, allocations: 38.33 kB / 0.955 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.9434, allocations: 5.406 kB / 0.955 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.9434, allocations: 2.25 kB / 0.955 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.9436, allocations: 30.22 kB / 0.955 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.9436, allocations: 1.406 kB / 0.955 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.9439, allocations: 44.67 kB / 0.9551 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.944, allocations: 18.8 kB / 0.9551 GB, free: 4.293 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 0.0001212/0.9441, allocations: 126.3 kB / 0.9552 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.9441, allocations: 7.938 kB / 0.9552 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004802/0.9446, allocations: 167.4 kB / 0.9554 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.9446, allocations: 5.344 kB / 0.9554 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.9446, allocations: 0 / 0.9554 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.9446, allocations: 0 / 0.9554 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006313/0.9453, allocations: 464.8 kB / 0.9558 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.9453, allocations: 0 / 0.9558 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.72e-05/0.9454, allocations: 22.62 kB / 0.9559 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.9454, allocations: 0 / 0.9559 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.9454, allocations: 3.844 kB / 0.9559 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.9454, allocations: 0 / 0.9559 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.9454, allocations: 3.938 kB / 0.9559 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.9458, allocations: 261.4 kB / 0.9561 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.553e-05/0.9459, allocations: 83.39 kB / 0.9562 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.9459, allocations: 2.438 kB / 0.9562 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.946, allocations: 18.03 kB / 0.9562 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.164e-05/0.9461, allocations: 18.86 kB / 0.9562 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.9461, allocations: 7.594 kB / 0.9562 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.177e-05/0.9462, allocations: 94.95 kB / 0.9563 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9462, allocations: 0 / 0.9563 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002775/0.9465, allocations: 34.31 kB / 0.9564 GB, free: 3.219 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.0007031/0.9472, allocations: 0.8076 MB / 0.9572 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005664/0.9478, allocations: 241.5 kB / 0.9574 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.9478, allocations: 0 / 0.9574 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.948, allocations: 67.11 kB / 0.9575 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.9483, allocations: 27.67 kB / 0.9575 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.9505, allocations: 1.925 MB / 0.9594 GB, free: 0.6367 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.9507, allocations: 0.7011 MB / 0.96 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.819e-05/0.9508, allocations: 5.875 kB / 0.9601 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.856e-05/0.9509, allocations: 33.14 kB / 0.9601 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of SimCode: time 3.91e-07/0.9509, allocations: 5.156 kB / 0.9601 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01376/0.9646, allocations: 2.926 MB / 0.9629 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001943/0.9649, allocations: 217.1 kB / 0.9632 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.829/2.794, allocations: 1.125 kB / 0.9632 GB, free: 14.2 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