Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.OnOffController,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",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.001226/0.001226, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001244/0.001244, allocations: 194.9 kB / 16.14 MB, free: 6.691 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.259/1.259, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.343/2.343, allocations: 437 MB / 0.7099 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 67.91 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5858/0.5873, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.001876/0.5892, allocations: 0.7864 MB / 1.017 GB, free: 2.027 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008211/0.5901, allocations: 0.8273 MB / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.428e-05/0.5901, allocations: 0 / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.02e-05/0.5901, allocations: 0 / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.283e-05/0.5902, allocations: 7.938 kB / 1.018 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001409/0.5904, allocations: 15.98 kB / 1.018 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.37e-05/0.5904, allocations: 47.84 kB / 1.018 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.508e-05/0.5905, allocations: 12 kB / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.907e-05/0.5906, allocations: 23.91 kB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.31e-05/0.5906, allocations: 15.92 kB / 1.018 GB, free: 1.066 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.532e-05/0.5907, allocations: 4 kB / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.728e-06/0.5907, allocations: 0 / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.875e-05/0.5907, allocations: 11.98 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.909e-05/0.5907, allocations: 15.88 kB / 1.018 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.288e-05/0.5908, allocations: 39.84 kB / 1.018 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.5908, allocations: 0 / 1.018 GB, free: 0.9961 MB / 0.7637 GB Notification: Performance of FrontEnd: time 6.31e-07/0.5908, allocations: 4 kB / 1.018 GB, free: 0.9922 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.396e-06/0.5908, allocations: 4 kB / 1.019 GB, free: 0.9883 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005481/0.5914, allocations: 381.5 kB / 1.019 GB, free: 0.5664 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.5914, allocations: 8.031 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.105e-05/0.5915, allocations: 38.75 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.33e-05/0.5915, allocations: 0.9375 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.41e-05/0.5916, allocations: 172.2 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.5916, allocations: 8.359 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.079e-05/0.5916, allocations: 4.375 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.5918, allocations: 58.23 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.5918, allocations: 7.875 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.5918, allocations: 0 / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.5918, allocations: 4 kB / 1.019 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.592, allocations: 47.95 kB / 1.019 GB, free: 176 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004682/0.5925, allocations: 296.7 kB / 1.019 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.5927, allocations: 54.55 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.83e-05/0.5928, allocations: 25 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.933e-05/0.5929, allocations: 0 / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.5929, allocations: 38.48 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 2.414e-06/0.5929, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003255/0.5932, allocations: 97.77 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.5933, allocations: 55.41 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.629e-05/0.5933, allocations: 109.8 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.5934, allocations: 29.7 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.321e-05/0.5934, allocations: 95.97 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.5934, allocations: 11.97 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.5935, allocations: 17.72 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.315e-05/0.5936, allocations: 318.8 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.952e-05/0.5936, allocations: 23.97 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.528e-05/0.5937, allocations: 23.97 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.5939, allocations: 48.75 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5939, allocations: 0 / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001971/0.5941, allocations: 77.66 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.5941, allocations: 8 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.5941, allocations: 0 / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.536e-06/0.5941, allocations: 0 / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.283e-05/0.5942, allocations: 7.984 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.5942, allocations: 4 kB / 1.02 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.5943, allocations: 11.98 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.5943, allocations: 4 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (onOffController.y,$PRE.onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 7.106e-05/0.5944, allocations: 122.2 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.642e-05/0.5944, allocations: 7.891 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/0.5947, allocations: 73.94 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.5947, allocations: 4 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5947, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.5947, allocations: 3.984 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.5949, allocations: 177.5 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.5949, allocations: 4 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.884e-05/0.5949, allocations: 7.984 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.5949, allocations: 4 kB / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.5949, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.595, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.595, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.5952, allocations: 183.2 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.025e-05/0.5952, allocations: 77.11 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.5953, allocations: 7.984 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.5954, allocations: 11.98 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.5954, allocations: 7.984 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.71e-06/0.5954, allocations: 4 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.312e-05/0.5955, allocations: 87.27 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5955, allocations: 8 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002066/0.5957, allocations: 4 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004804/0.5962, allocations: 0.7202 MB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000204/0.5964, allocations: 51.95 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5964, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 8.932e-05/0.5965, allocations: 23.97 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.5968, allocations: 4 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001358/0.5981, allocations: 1.334 MB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002321/0.5984, allocations: 0.6848 MB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.079e-05/0.5984, allocations: 0 / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.5985, allocations: 15.44 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.5985, allocations: 3.938 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0103/0.6088, allocations: 1.532 MB / 1.026 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/0.609, allocations: 210.9 kB / 1.026 GB, free: 9.188 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.553/2.162, allocations: 7.031 kB / 1.026 GB, free: 9.184 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches