Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.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.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",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.001095/0.001095, 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.00116/0.00116, allocations: 194.2 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.379/2.379, allocations: 390.3 MB / 0.6647 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 71.83 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6392/0.6411, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002541/0.6437, allocations: 0.7803 MB / 0.9505 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001374/0.6451, allocations: 1.144 MB / 0.9516 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.134e-05/0.6451, allocations: 0 / 0.9516 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.661e-05/0.6452, allocations: 9 kB / 0.9516 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.025e-05/0.6453, allocations: 9.531 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00049/0.6458, allocations: 123.8 kB / 0.9518 GB, free: 7.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.646, allocations: 141.7 kB / 0.9519 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.6461, allocations: 15.17 kB / 0.9519 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.101e-05/0.6462, allocations: 49.31 kB / 0.952 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.91e-05/0.6463, allocations: 55.48 kB / 0.952 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.6463, allocations: 15.38 kB / 0.952 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.963e-05/0.6464, allocations: 25.42 kB / 0.9521 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.325e-05/0.6464, allocations: 5.875 kB / 0.9521 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.773e-05/0.6465, allocations: 48.12 kB / 0.9521 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.6467, allocations: 119.9 kB / 0.9522 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.6467, allocations: 0 / 0.9522 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6467, allocations: 5.5 kB / 0.9522 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.6467, allocations: 0 / 0.9522 GB, free: 7.273 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.0006177/0.6473, allocations: 423.3 kB / 0.9526 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.6474, allocations: 9.594 kB / 0.9526 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.6474, allocations: 35.88 kB / 0.9527 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.6474, allocations: 10.59 kB / 0.9527 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.616e-05/0.6475, allocations: 181 kB / 0.9529 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.6476, allocations: 3.188 kB / 0.9529 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.6476, allocations: 6.438 kB / 0.9529 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.6478, allocations: 78.73 kB / 0.9529 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.6479, allocations: 7.938 kB / 0.9529 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.6479, allocations: 1.156 kB / 0.9529 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-06/0.6479, allocations: 1.094 kB / 0.9529 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002913/0.6482, allocations: 69.58 kB / 0.953 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003561/0.6485, allocations: 330.2 kB / 0.9533 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001808/0.6487, allocations: 56.22 kB / 0.9534 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.6489, allocations: 43.91 kB / 0.9534 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.6489, allocations: 3.938 kB / 0.9534 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.6492, allocations: 96.39 kB / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.523e-06/0.6492, allocations: 0 / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005838/0.6498, allocations: 162.4 kB / 0.9537 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.6498, allocations: 56.62 kB / 0.9537 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.38e-05/0.6499, allocations: 124.5 kB / 0.9538 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.6499, allocations: 32.3 kB / 0.9539 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.13e-05/0.65, allocations: 99.94 kB / 0.954 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.65, allocations: 10.44 kB / 0.954 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-05/0.6501, allocations: 34.14 kB / 0.954 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.435e-05/0.6501, allocations: 325.1 kB / 0.9543 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.6503, allocations: 60.11 kB / 0.9544 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.6505, allocations: 81.02 kB / 0.9545 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003441/0.6509, allocations: 149.8 kB / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.6509, allocations: 1.281 kB / 0.9546 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004964/0.6514, allocations: 210.8 kB / 0.9548 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.6514, allocations: 42.22 kB / 0.9548 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.6515, allocations: 5.125 kB / 0.9548 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.6515, allocations: 5.094 kB / 0.9549 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.6516, allocations: 14.98 kB / 0.9549 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.6516, allocations: 1.219 kB / 0.9549 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.6519, allocations: 42.78 kB / 0.9549 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.6519, allocations: 5.656 kB / 0.9549 GB, free: 4.836 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * 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 6.428e-05/0.652, allocations: 126.6 kB / 0.955 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.493e-05/0.652, allocations: 3.156 kB / 0.955 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.589e-05/0.652, allocations: 14.45 kB / 0.9551 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.652, allocations: 1 kB / 0.9551 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.652, allocations: 0 / 0.9551 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.652, allocations: 0 / 0.9551 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.529e-05/0.6521, allocations: 187.3 kB / 0.9552 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6521, allocations: 3.938 kB / 0.9552 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.863e-05/0.6523, allocations: 18.03 kB / 0.9553 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.6523, allocations: 1.469 kB / 0.9553 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.6523, allocations: 4 kB / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.6523, allocations: 1.156 kB / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.6523, allocations: 0 / 0.9553 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000357/0.6526, allocations: 153 kB / 0.9554 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.066e-05/0.6527, allocations: 86.17 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.6527, allocations: 1.25 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.6528, allocations: 11.64 kB / 0.9555 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.051e-05/0.6528, allocations: 14.44 kB / 0.9555 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.6528, allocations: 2.344 kB / 0.9555 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.659e-05/0.6529, allocations: 92.58 kB / 0.9556 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.62e-07/0.6529, allocations: 1.125 kB / 0.9556 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002205/0.6531, allocations: 31.03 kB / 0.9556 GB, free: 4.137 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: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005948/0.6537, allocations: 0.6974 MB / 0.9563 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004386/0.6542, allocations: 190 kB / 0.9565 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.6542, allocations: 0 / 0.9565 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.6544, allocations: 46.95 kB / 0.9565 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.6546, allocations: 14.77 kB / 0.9566 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.6568, allocations: 1.633 MB / 0.9582 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.657, allocations: 0.6886 MB / 0.9588 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.184e-05/0.657, allocations: 11.52 kB / 0.9588 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.41e-05/0.6571, allocations: 17.81 kB / 0.9589 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of SimCode: time 1.032e-06/0.6571, allocations: 1 kB / 0.9589 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03332/0.6904, allocations: 2.643 MB / 0.9614 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.478/8.169, allocations: 8.656 kB / 0.9614 GB, free: 15.77 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches