Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Change,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change",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.001305/0.001305, 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.001534/0.001534, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.269/1.269, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.496/2.496, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 68.55 kB / 0.8985 GB, free: 36.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2518, allocations: 157.4 MB / 1.052 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.001922/0.2538, allocations: 0.8065 MB / 1.053 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2552, allocations: 1.166 MB / 1.054 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.518e-05/0.2553, allocations: 0 / 1.054 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.017e-05/0.2553, allocations: 3.938 kB / 1.054 GB, free: 6.211 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.219e-05/0.2554, allocations: 15.92 kB / 1.054 GB, free: 6.195 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.2559, allocations: 127.7 kB / 1.054 GB, free: 6.074 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.256, allocations: 99.81 kB / 1.054 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.192e-05/0.2561, allocations: 15.98 kB / 1.054 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.248e-05/0.2562, allocations: 39.91 kB / 1.054 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.772e-05/0.2562, allocations: 39.83 kB / 1.054 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.453e-05/0.2563, allocations: 8 kB / 1.054 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.42e-05/0.2563, allocations: 19.92 kB / 1.054 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.209e-05/0.2564, allocations: 11.98 kB / 1.055 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.633e-05/0.2564, allocations: 47.83 kB / 1.055 GB, free: 5.797 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.2566, allocations: 103.7 kB / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2566, allocations: 0 / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.01e-07/0.2566, allocations: 0 / 1.055 GB, free: 5.695 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.2566, allocations: 0 / 1.055 GB, free: 5.695 MB / 0.8106 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.0005708/0.2572, allocations: 413.2 kB / 1.055 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.2573, allocations: 19.91 kB / 1.055 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.189e-05/0.2573, allocations: 34.73 kB / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.377e-05/0.2574, allocations: 4.938 kB / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.2575, allocations: 172.3 kB / 1.055 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.2575, allocations: 8.375 kB / 1.055 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.495e-05/0.2575, allocations: 12.36 kB / 1.055 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.2577, allocations: 70.14 kB / 1.055 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.2577, allocations: 3.938 kB / 1.055 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.2578, allocations: 0 / 1.055 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2578, allocations: 4 kB / 1.055 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.258, allocations: 39.95 kB / 1.055 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005513/0.2585, allocations: 336.6 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.2587, allocations: 62.55 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.2588, allocations: 32.97 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.744e-05/0.2589, allocations: 4 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002779/0.2591, allocations: 91.3 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.2592, allocations: 0 / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0004491/0.2596, allocations: 145.5 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.2597, allocations: 59.39 kB / 1.056 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.375e-05/0.2598, allocations: 113.8 kB / 1.056 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.2598, allocations: 33.7 kB / 1.056 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.461e-05/0.2599, allocations: 92.12 kB / 1.056 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.2599, allocations: 11.81 kB / 1.056 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.26, allocations: 37.7 kB / 1.056 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.973e-05/0.2601, allocations: 322.8 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.2602, allocations: 55.97 kB / 1.057 GB, free: 3.324 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.2604, allocations: 84.25 kB / 1.057 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.2607, allocations: 141.9 kB / 1.057 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2607, allocations: 0 / 1.057 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004222/0.2611, allocations: 211.1 kB / 1.057 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 3.655e-05/0.2612, allocations: 39.42 kB / 1.057 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.2612, allocations: 4.125 kB / 1.057 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.2612, allocations: 4 kB / 1.057 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.559e-05/0.2613, allocations: 15.92 kB / 1.057 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.2613, allocations: 320 / 1.057 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.2615, allocations: 43.86 kB / 1.057 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.206e-05/0.2616, allocations: 12 kB / 1.057 GB, free: 2.727 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 9.464e-05/0.2617, allocations: 127.7 kB / 1.057 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.2617, allocations: 3.984 kB / 1.057 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.698e-05/0.2617, allocations: 12.38 kB / 1.057 GB, free: 2.578 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2617, allocations: 3.938 kB / 1.057 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.2617, allocations: 0 / 1.057 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2617, allocations: 0 / 1.057 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004404/0.2622, allocations: 390.2 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2622, allocations: 4 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.35e-05/0.2622, allocations: 7.984 kB / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2623, allocations: 0 / 1.058 GB, free: 2.125 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.2623, allocations: 4 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.2623, allocations: 4 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2623, allocations: 0 / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002816/0.2626, allocations: 211.3 kB / 1.058 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.298e-05/0.2626, allocations: 81.11 kB / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.2626, allocations: 4 kB / 1.058 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.158e-05/0.2627, allocations: 7.984 kB / 1.058 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.2628, allocations: 11.92 kB / 1.058 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.231e-06/0.2628, allocations: 0 / 1.058 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.765e-05/0.2628, allocations: 91.27 kB / 1.058 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2628, allocations: 0 / 1.058 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002498/0.2631, allocations: 24 kB / 1.058 GB, free: 1.66 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0005594/0.2637, allocations: 0.7475 MB / 1.059 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003449/0.264, allocations: 179.3 kB / 1.059 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.264, allocations: 0 / 1.059 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.2641, allocations: 39.97 kB / 1.059 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.2644, allocations: 16.8 kB / 1.059 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.2662, allocations: 1.691 MB / 1.061 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.2665, allocations: 0.6887 MB / 1.061 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.462e-05/0.2665, allocations: 7.984 kB / 1.061 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.305e-05/0.2666, allocations: 23.42 kB / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of SimCode: time 3.6e-07/0.2666, allocations: 0 / 1.062 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3642/0.6308, allocations: 2.303 MB / 1.064 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000246/0.6311, allocations: 218.9 kB / 1.064 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.73/2.361, allocations: 0 / 1.064 GB, free: 11.64 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Change.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches