Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_9_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.001297/0.001297, allocations: 108 kB / 15.6 MB, free: 132 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.002078/0.002078, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.387/1.387, 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.386/2.386, allocations: 390.2 MB / 0.6647 GB, free: 296 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 59.91 kB / 0.8127 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6365/0.6386, allocations: 140.4 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController): time 0.002248/0.6409, allocations: 0.702 MB / 0.9504 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008656/0.6418, allocations: 0.824 MB / 0.9512 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.724e-05/0.6418, allocations: 0 / 0.9512 GB, free: 7.941 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.913e-05/0.6418, allocations: 5.344 kB / 0.9512 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.553e-05/0.6419, allocations: 3.938 kB / 0.9512 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001645/0.6421, allocations: 18.75 kB / 0.9513 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.187e-05/0.6422, allocations: 45.88 kB / 0.9513 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.6423, allocations: 22.11 kB / 0.9513 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.344e-05/0.6424, allocations: 17.94 kB / 0.9513 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.819e-05/0.6424, allocations: 21.56 kB / 0.9514 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.6425, allocations: 3.531 kB / 0.9514 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.238e-05/0.6425, allocations: 8.125 kB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.966e-05/0.6425, allocations: 13.19 kB / 0.9514 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.6425, allocations: 20.47 kB / 0.9514 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.202e-05/0.6426, allocations: 43.09 kB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.6426, allocations: 0 / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.182e-06/0.6426, allocations: 4 kB / 0.9514 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.6426, allocations: 1.719 kB / 0.9514 GB, free: 7.777 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005474/0.6432, allocations: 382.2 kB / 0.9518 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.6432, allocations: 13.22 kB / 0.9518 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.208e-05/0.6433, allocations: 40.33 kB / 0.9519 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.553e-05/0.6433, allocations: 3.656 kB / 0.9519 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.981e-05/0.6434, allocations: 166 kB / 0.952 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.6434, allocations: 2.5 kB / 0.952 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.6434, allocations: 2.781 kB / 0.952 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.6436, allocations: 67.03 kB / 0.9521 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.6436, allocations: 3.938 kB / 0.9521 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.6436, allocations: 5.188 kB / 0.9521 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.6436, allocations: 9.312 kB / 0.9521 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.6438, allocations: 51.48 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.6442, allocations: 300.3 kB / 0.9524 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.6445, allocations: 57.36 kB / 0.9525 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.017e-05/0.6446, allocations: 23.28 kB / 0.9525 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.6446, allocations: 1.312 kB / 0.9525 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.6446, allocations: 31.66 kB / 0.9526 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.6446, allocations: 4 kB / 0.9526 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003569/0.645, allocations: 84.95 kB / 0.9526 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.665e-05/0.645, allocations: 60.83 kB / 0.9527 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.332e-05/0.6451, allocations: 113.9 kB / 0.9528 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.468e-06/0.6451, allocations: 25.7 kB / 0.9528 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.789e-05/0.6452, allocations: 90.52 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.64e-05/0.6452, allocations: 6.25 kB / 0.9529 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.6452, allocations: 20.5 kB / 0.9529 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.778e-05/0.6453, allocations: 324.4 kB / 0.9533 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.289e-05/0.6454, allocations: 23.58 kB / 0.9533 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.137e-05/0.6455, allocations: 23.75 kB / 0.9533 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.6456, allocations: 37.77 kB / 0.9533 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.6456, allocations: 7.938 kB / 0.9533 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002005/0.6458, allocations: 83.12 kB / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.6459, allocations: 4.594 kB / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.6459, allocations: 0 / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.6459, allocations: 1.438 kB / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.496e-05/0.646, allocations: 9.328 kB / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.646, allocations: 1.688 kB / 0.9534 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.6461, allocations: 24.53 kB / 0.9535 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.6461, allocations: 1.125 kB / 0.9535 GB, free: 5.785 MB / 0.7169 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 5.959e-05/0.6462, allocations: 112.4 kB / 0.9536 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.6462, allocations: 6.406 kB / 0.9536 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002465/0.6464, allocations: 85.55 kB / 0.9537 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.6464, allocations: 1.5 kB / 0.9537 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.6465, allocations: 4 kB / 0.9537 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.6465, allocations: 0 / 0.9537 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.6466, allocations: 169.5 kB / 0.9538 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.6466, allocations: 0 / 0.9538 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.6467, allocations: 11.17 kB / 0.9538 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.6467, allocations: 0 / 0.9538 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.6467, allocations: 1.062 kB / 0.9538 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.6467, allocations: 0 / 0.9538 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.6467, allocations: 1.281 kB / 0.9538 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002179/0.6469, allocations: 177.7 kB / 0.954 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.172e-05/0.647, allocations: 82.52 kB / 0.9541 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.647, allocations: 5.094 kB / 0.9541 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.6471, allocations: 12.33 kB / 0.9541 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.6472, allocations: 12.27 kB / 0.9541 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.6472, allocations: 0 / 0.9541 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.51e-05/0.6472, allocations: 100.1 kB / 0.9542 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6472, allocations: 0 / 0.9542 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002158/0.6475, allocations: 5.281 kB / 0.9542 GB, free: 5.012 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: 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.0004351/0.6479, allocations: 0.7077 MB / 0.9549 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000247/0.6482, allocations: 51.05 kB / 0.955 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6482, allocations: 3.938 kB / 0.955 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.654e-05/0.6483, allocations: 26.27 kB / 0.955 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.6486, allocations: 4.344 kB / 0.955 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.6498, allocations: 1.333 MB / 0.9563 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.65, allocations: 0.6843 MB / 0.957 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.005e-05/0.65, allocations: 1.219 kB / 0.957 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.388e-05/0.65, allocations: 17.73 kB / 0.957 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.65, allocations: 5.188 kB / 0.957 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04565/0.6957, allocations: 1.771 MB / 0.9587 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/8.321, allocations: 7.719 kB / 0.9587 GB, free: 1.332 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches