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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001002/0.001002, 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.001147/0.001148, allocations: 190.5 kB / 16.13 MB, free: 6.645 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.325/1.325, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.186/2.186, allocations: 390.2 MB / 0.6643 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 67.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6357/0.6371, allocations: 140.4 MB / 0.9491 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.002154/0.6393, allocations: 0.8459 MB / 0.9499 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.6406, allocations: 1.141 MB / 0.951 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.846e-05/0.6406, allocations: 1.062 kB / 0.951 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.196e-05/0.6407, allocations: 7.922 kB / 0.951 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.578e-05/0.6407, allocations: 9.328 kB / 0.951 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000386/0.6411, allocations: 126.1 kB / 0.9511 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.6413, allocations: 118.8 kB / 0.9513 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.695e-05/0.6413, allocations: 15.52 kB / 0.9513 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.832e-05/0.6414, allocations: 44.36 kB / 0.9513 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.375e-05/0.6415, allocations: 45.05 kB / 0.9514 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.614e-05/0.6415, allocations: 6.562 kB / 0.9514 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.529e-05/0.6416, allocations: 24.48 kB / 0.9514 GB, free: 7.379 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.153e-05/0.6416, allocations: 14.55 kB / 0.9514 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.996e-05/0.6417, allocations: 44.45 kB / 0.9514 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.6418, allocations: 110.6 kB / 0.9515 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6419, allocations: 3.938 kB / 0.9515 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.022e-06/0.6419, allocations: 1.406 kB / 0.9515 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.6419, allocations: 0 / 0.9515 GB, free: 7.25 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.0005389/0.6424, allocations: 420.9 kB / 0.952 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.6425, allocations: 14.08 kB / 0.952 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.442e-05/0.6425, allocations: 34.69 kB / 0.952 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.282e-05/0.6425, allocations: 14.66 kB / 0.952 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.134e-05/0.6426, allocations: 171.8 kB / 0.9522 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.6426, allocations: 4.062 kB / 0.9522 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.172e-05/0.6427, allocations: 10.81 kB / 0.9522 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.6429, allocations: 74.58 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.6429, allocations: 3.938 kB / 0.9523 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.643, allocations: 1.156 kB / 0.9523 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.643, allocations: 5.109 kB / 0.9523 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002969/0.6433, allocations: 73.45 kB / 0.9523 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003654/0.6436, allocations: 330.4 kB / 0.9527 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.6438, allocations: 60.62 kB / 0.9527 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.644, allocations: 41.3 kB / 0.9528 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.644, allocations: 1.062 kB / 0.9528 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002736/0.6443, allocations: 100.2 kB / 0.9528 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.6443, allocations: 0 / 0.9528 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005665/0.6449, allocations: 158.7 kB / 0.953 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.6449, allocations: 52.25 kB / 0.9531 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.962e-05/0.645, allocations: 129.1 kB / 0.9532 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.645, allocations: 35.89 kB / 0.9532 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.6451, allocations: 89.05 kB / 0.9533 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.6451, allocations: 17.48 kB / 0.9533 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.307e-05/0.6452, allocations: 31.55 kB / 0.9533 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.246e-05/0.6452, allocations: 324 kB / 0.9536 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.6454, allocations: 60.05 kB / 0.9537 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.6456, allocations: 89.89 kB / 0.9538 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.646, allocations: 137.9 kB / 0.9539 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.646, allocations: 4 kB / 0.9539 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004951/0.6465, allocations: 215.6 kB / 0.9541 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.341e-05/0.6465, allocations: 40.69 kB / 0.9542 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.6465, allocations: 9.375 kB / 0.9542 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.6465, allocations: 5.312 kB / 0.9542 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.6467, allocations: 14.86 kB / 0.9542 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.6467, allocations: 5.281 kB / 0.9542 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.6469, allocations: 38.61 kB / 0.9542 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.647, allocations: 12.61 kB / 0.9543 GB, free: 4.801 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.669e-05/0.647, allocations: 123.7 kB / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.647, allocations: 3.656 kB / 0.9544 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.48e-05/0.6471, allocations: 9.516 kB / 0.9544 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.105e-06/0.6471, allocations: 5.312 kB / 0.9544 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.6471, allocations: 0 / 0.9544 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.6471, allocations: 3.984 kB / 0.9544 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.062e-05/0.6472, allocations: 183.4 kB / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.6472, allocations: 0 / 0.9546 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.807e-05/0.6473, allocations: 14.17 kB / 0.9546 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.6473, allocations: 5.281 kB / 0.9546 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.6473, allocations: 4 kB / 0.9546 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6473, allocations: 5.453 kB / 0.9546 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6473, allocations: 0 / 0.9546 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003376/0.6477, allocations: 148.7 kB / 0.9547 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.008e-05/0.6477, allocations: 86.44 kB / 0.9548 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.6477, allocations: 1.375 kB / 0.9548 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.192e-05/0.6478, allocations: 18.52 kB / 0.9548 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.6479, allocations: 8.078 kB / 0.9548 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.6479, allocations: 1.5 kB / 0.9548 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.671e-05/0.6479, allocations: 92.67 kB / 0.9549 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6479, allocations: 1.094 kB / 0.9549 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002139/0.6481, allocations: 23.59 kB / 0.955 GB, free: 4.117 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.000569/0.6487, allocations: 0.7008 MB / 0.9556 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004353/0.6492, allocations: 189.3 kB / 0.9558 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.6492, allocations: 4.125 kB / 0.9558 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.6493, allocations: 47.8 kB / 0.9559 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.6496, allocations: 10.36 kB / 0.9559 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001812/0.6514, allocations: 1.649 MB / 0.9575 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.6515, allocations: 0.6875 MB / 0.9582 GB, free: 1.156 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.858e-05/0.6515, allocations: 6.328 kB / 0.9582 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/0.6516, allocations: 22.84 kB / 0.9582 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6516, allocations: 0 / 0.9582 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8395/1.491, allocations: 2.382 MB / 0.9605 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/1.491, allocations: 201.2 kB / 0.9607 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.057/3.548, allocations: 0 / 0.9607 GB, free: 15.68 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