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.01103/0.01103, allocations: 102.3 kB / 15.73 MB, free: 6.035 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.002036/0.002036, allocations: 191.2 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.305/2.305, allocations: 222.9 MB / 240.4 MB, free: 15.16 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 3.269/3.269, allocations: 390.3 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 67.84 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.375/1.377, allocations: 140.3 MB / 1.087 GB, free: 5.293 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.004155/1.381, allocations: 0.8189 MB / 1.088 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003282/1.384, allocations: 1.2 MB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/1.385, allocations: 1.188 kB / 1.089 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.966e-05/1.385, allocations: 8.531 kB / 1.089 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000144/1.385, allocations: 16.09 kB / 1.089 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000957/1.386, allocations: 151 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004043/1.386, allocations: 164 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/1.386, allocations: 22.22 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/1.387, allocations: 67.33 kB / 1.09 GB, free: 3.676 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002131/1.387, allocations: 63.81 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.811e-05/1.387, allocations: 12.94 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001489/1.387, allocations: 31.58 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.035e-05/1.387, allocations: 24.38 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001846/1.387, allocations: 55.83 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004964/1.388, allocations: 145.3 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.388, allocations: 0 / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.164e-06/1.388, allocations: 1.375 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.21e-05/1.388, allocations: 0.6562 kB / 1.09 GB, free: 3.543 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.001361/1.389, allocations: 445.4 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 9.658e-05/1.389, allocations: 10.33 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.641e-05/1.39, allocations: 38.56 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/1.39, allocations: 11.92 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001948/1.39, allocations: 178.3 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.626e-05/1.39, allocations: 10.11 kB / 1.091 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.039e-05/1.39, allocations: 8.344 kB / 1.091 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/1.391, allocations: 104.3 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/1.391, allocations: 4.938 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/1.391, allocations: 2.047 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/1.391, allocations: 0.875 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005948/1.391, allocations: 87.78 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000939/1.392, allocations: 384 kB / 1.091 GB, free: 2.461 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004776/1.393, allocations: 96.22 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003412/1.393, allocations: 57.56 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.062e-05/1.393, allocations: 5.688 kB / 1.092 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005774/1.394, allocations: 117.8 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 2.685e-06/1.394, allocations: 4.625 kB / 1.092 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.001329/1.395, allocations: 215.7 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/1.395, allocations: 54.2 kB / 1.092 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/1.395, allocations: 134.4 kB / 1.092 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.836e-05/1.395, allocations: 30.67 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.787e-05/1.396, allocations: 101.9 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.915e-05/1.396, allocations: 31.12 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/1.396, allocations: 42.89 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.316e-05/1.396, allocations: 328.8 kB / 1.093 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/1.396, allocations: 76.97 kB / 1.093 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004379/1.397, allocations: 118.6 kB / 1.093 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000747/1.398, allocations: 182.4 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/1.398, allocations: 0.7812 kB / 1.093 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001137/1.399, allocations: 275.1 kB / 1.093 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.116e-05/1.399, allocations: 36.41 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/1.399, allocations: 0.7188 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.48e-05/1.399, allocations: 1.938 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/1.399, allocations: 28.75 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/1.399, allocations: 2.547 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004831/1.4, allocations: 48.81 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.186e-05/1.4, allocations: 12.38 kB / 1.093 GB, free: 1.184 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.0001607/1.4, allocations: 123.8 kB / 1.093 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.083e-05/1.4, allocations: 8.609 kB / 1.093 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008776/1.401, allocations: 173.7 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/1.401, allocations: 1.375 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.401, allocations: 1.281 kB / 1.094 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/1.401, allocations: 4.781 kB / 1.094 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/1.402, allocations: 456.8 kB / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/1.402, allocations: 0 / 1.094 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002143/1.402, allocations: 21.36 kB / 1.094 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/1.402, allocations: 0.8125 kB / 1.094 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/1.402, allocations: 2.547 kB / 1.094 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/1.402, allocations: 5.031 kB / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.402, allocations: 0 / 1.094 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008616/1.403, allocations: 264.4 kB / 1.094 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.704e-05/1.403, allocations: 84.8 kB / 1.094 GB, free: 352 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/1.403, allocations: 6.234 kB / 1.094 GB, free: 348 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002456/1.404, allocations: 15.84 kB / 1.094 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/1.404, allocations: 12.05 kB / 1.094 GB, free: 344 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/1.404, allocations: 8.688 kB / 1.094 GB, free: 340 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.523e-05/1.404, allocations: 100.2 kB / 1.095 GB, free: 256 kB / 0.8575 GB Notification: Performance of sort global known variables: time 3.9e-07/1.404, allocations: 0.8125 kB / 1.095 GB, free: 256 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006031/1.405, allocations: 34.27 kB / 1.095 GB, free: 248 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.001687/1.406, allocations: 0.809 MB / 1.095 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001317/1.408, allocations: 234.2 kB / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.408, allocations: 0 / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004486/1.408, allocations: 68.64 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006063/1.409, allocations: 22.47 kB / 1.096 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005956/1.415, allocations: 1.91 MB / 1.098 GB, free: 13.9 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004876/1.415, allocations: 0.696 MB / 1.098 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001125/1.415, allocations: 8.062 kB / 1.098 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/1.416, allocations: 28.75 kB / 1.098 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of SimCode: time 1.263e-06/1.416, allocations: 0 / 1.098 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03868/1.454, allocations: 3.178 MB / 1.101 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/13.62, allocations: 5.328 kB / 1.101 GB, free: 12.68 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 & /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