Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.VariablePulseMinHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_VariablePulseMinHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_VariablePulseMinHold",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.007172/0.007173, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001352/0.001352, allocations: 191.1 kB / 16.67 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.842/2.842, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 69.42 kB / 1.083 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3124, allocations: 162.2 MB / 1.241 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold): time 0.002311/0.3148, allocations: 1.087 MB / 1.243 GB, free: 8.297 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002171/0.317, allocations: 1.599 MB / 1.244 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.3171, allocations: 7.938 kB / 1.244 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.3172, allocations: 19.75 kB / 1.244 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001206/0.3173, allocations: 43.64 kB / 1.244 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005931/0.318, allocations: 230.8 kB / 1.244 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.3184, allocations: 347.3 kB / 1.245 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.3185, allocations: 78.61 kB / 1.245 GB, free: 5.969 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.3187, allocations: 135.6 kB / 1.245 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.3189, allocations: 131.5 kB / 1.245 GB, free: 5.707 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.865e-05/0.319, allocations: 32 kB / 1.245 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.3191, allocations: 47.98 kB / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.143e-05/0.3192, allocations: 67.75 kB / 1.245 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001547/0.3193, allocations: 123.5 kB / 1.245 GB, free: 5.441 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.3198, allocations: 378.9 kB / 1.246 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.3198, allocations: 0 / 1.246 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3198, allocations: 0 / 1.246 GB, free: 5.07 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.819e-06/0.3198, allocations: 0 / 1.246 GB, free: 5.07 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009641/0.3208, allocations: 0.5555 MB / 1.246 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3208, allocations: 8.031 kB / 1.246 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.3209, allocations: 54.67 kB / 1.246 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.528e-05/0.321, allocations: 28.8 kB / 1.246 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.3213, allocations: 276 kB / 1.247 GB, free: 4.051 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.3214, allocations: 20.64 kB / 1.247 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.218e-05/0.3214, allocations: 24.38 kB / 1.247 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004049/0.3219, allocations: 191.9 kB / 1.247 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3219, allocations: 0 / 1.247 GB, free: 3.816 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.3219, allocations: 11.98 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.3219, allocations: 0 / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.3223, allocations: 148.7 kB / 1.247 GB, free: 3.66 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001025/0.3233, allocations: 0.6526 MB / 1.248 GB, free: 2.957 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004972/0.3238, allocations: 198.8 kB / 1.248 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002163/0.324, allocations: 100.8 kB / 1.248 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.3241, allocations: 0 / 1.248 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004202/0.3245, allocations: 226.5 kB / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.3245, allocations: 0 / 1.248 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=25): time 0.0008063/0.3253, allocations: 341.4 kB / 1.248 GB, free: 2.082 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.3254, allocations: 59.41 kB / 1.248 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.3256, allocations: 186.2 kB / 1.249 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.899e-05/0.3256, allocations: 45.69 kB / 1.249 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 9.656e-05/0.3257, allocations: 116.7 kB / 1.249 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.451e-05/0.3258, allocations: 71.41 kB / 1.249 GB, free: 1.578 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.3259, allocations: 77.67 kB / 1.249 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.3261, allocations: 326.8 kB / 1.249 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3263, allocations: 99.81 kB / 1.249 GB, free: 1.07 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.3265, allocations: 148.2 kB / 1.249 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003178/0.3268, allocations: 205.5 kB / 1.25 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.3269, allocations: 4 kB / 1.25 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005656/0.3274, allocations: 335.9 kB / 1.25 GB, free: 356 kB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.317e-05/0.3275, allocations: 39.61 kB / 1.25 GB, free: 312 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3275, allocations: 7.984 kB / 1.25 GB, free: 304 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.3275, allocations: 0 / 1.25 GB, free: 304 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.3276, allocations: 31.92 kB / 1.25 GB, free: 272 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.3276, allocations: 0 / 1.25 GB, free: 272 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002712/0.3279, allocations: 47.84 kB / 1.25 GB, free: 224 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.834e-05/0.328, allocations: 19.98 kB / 1.25 GB, free: 204 kB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 31 ($whenCondition6,$whenCondition7,conChaWid.preBre.y,$PRE.conChaWid.preBre.u,$whenCondition1,conPul1.booPul.y,$PRE.conPul1.booPul.y,conChaWid.truFalHol.entryTimeFalse,$PRE.conChaWid.truFalHol.entryTimeFalse,conChaWid.truFalHol.entryTimeTrue,$PRE.conChaWid.truFalHol.entryTimeTrue,conChaWid.truFalHol.not_y,$PRE.conChaWid.truFalHol.not_y,conChaWid.truFalHol.not_u,$PRE.conChaWid.truFalHol.not_u,conChaWid.truFalHol.y,$PRE.conChaWid.truFalHol.y,conChaWid.truFalHol.u,$PRE.conChaWid.truFalHol.u,conChaWid.cycOut.t0,$PRE.conChaWid.cycOut.t0,conChaWid.preBre.u,conChaWid.edg2.y,conChaWid.edg2.u,$PRE.conChaWid.edg2.u,conChaWid.triSam.y,$PRE.conChaWid.triSam.y,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0001658/0.3281, allocations: 165.7 kB / 1.25 GB, free: 32 kB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.3282, allocations: 19.86 kB / 1.25 GB, free: 12 kB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006252/0.3288, allocations: 286.7 kB / 1.251 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3288, allocations: 7.938 kB / 1.251 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3288, allocations: 0 / 1.251 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3289, allocations: 3.984 kB / 1.251 GB, free: 15.71 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.3299, allocations: 0.682 MB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.3299, allocations: 4 kB / 1.251 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.411e-05/0.33, allocations: 11.98 kB / 1.251 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.33, allocations: 0 / 1.251 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.951e-05/0.33, allocations: 11.98 kB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.33, allocations: 0 / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.33, allocations: 4 kB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006066/0.3306, allocations: 377.6 kB / 1.252 GB, free: 14.56 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.945e-05/0.3307, allocations: 92.97 kB / 1.252 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.107e-05/0.3308, allocations: 23.98 kB / 1.252 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000156/0.3309, allocations: 15.98 kB / 1.252 GB, free: 14.41 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/0.331, allocations: 31.89 kB / 1.252 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/0.3311, allocations: 11.98 kB / 1.252 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001163/0.3312, allocations: 127.2 kB / 1.252 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3312, allocations: 0 / 1.252 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003259/0.3315, allocations: 63.94 kB / 1.252 GB, free: 14.18 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 (conChaWid.edg2.y,conChaWid.preBre.y,$whenCondition6,$whenCondition7,$whenCondition3,$whenCondition5,$whenCondition4,$whenCondition2,$whenCondition1,conChaWid.triSam.y,conChaWid.edg2.u,conChaWid.preBre.u,conChaWid.cycOut.t0,conChaWid.truFalHol.u,conChaWid.truFalHol.y,conChaWid.truFalHol.not_u,conChaWid.truFalHol.not_y,conChaWid.truFalHol.entryTimeTrue,conChaWid.truFalHol.entryTimeFalse,conPul1.booPul.y) * Number of discrete states: 8 (conChaWid.truFalHol.entryTimeFalse,conChaWid.truFalHol.entryTimeTrue,conChaWid.preBre.u,conChaWid.edg2.u,conChaWid.truFalHol.u,conChaWid.truFalHol.not_u,conChaWid.truFalHol.y,conChaWid.truFalHol.not_y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.001011/0.3325, allocations: 0.9265 MB / 1.253 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005883/0.3331, allocations: 323.2 kB / 1.253 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3332, allocations: 0 / 1.253 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.3334, allocations: 127.8 kB / 1.253 GB, free: 12.78 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.3338, allocations: 56.09 kB / 1.253 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00311/0.337, allocations: 2.395 MB / 1.256 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.3373, allocations: 0.7324 MB / 1.256 GB, free: 9.469 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.95e-05/0.3374, allocations: 21.94 kB / 1.256 GB, free: 9.445 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.3375, allocations: 63.41 kB / 1.257 GB, free: 9.383 MB / 0.9825 GB Notification: Performance of SimCode: time 2.81e-07/0.3375, allocations: 4 kB / 1.257 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02727/0.3648, allocations: 5.192 MB / 1.262 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.971/8.336, allocations: 7.125 kB / 1.262 GB, free: 4.352 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_VariablePulseMinHold.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_VariablePulseMinHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.VariablePulseMinHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches