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.001282/0.001282, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001358/0.001358, allocations: 189.2 kB / 16.25 MB, free: 6.633 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.388/1.388, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.346/2.346, allocations: 390.2 MB / 0.6644 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 63.89 kB / 0.8122 GB, free: 14.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7372/0.7387, allocations: 140.4 MB / 0.9493 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.00178/0.7405, allocations: 0.8523 MB / 0.9501 GB, free: 8.5 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.7416, allocations: 1.126 MB / 0.9512 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.17e-05/0.7416, allocations: 1.375 kB / 0.9512 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.7417, allocations: 0 / 0.9512 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.278e-05/0.7417, allocations: 13.23 kB / 0.9512 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.7422, allocations: 121.8 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001439/0.7423, allocations: 138.4 kB / 0.9515 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.916e-05/0.7424, allocations: 15.44 kB / 0.9515 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.947e-05/0.7425, allocations: 52.8 kB / 0.9515 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.213e-05/0.7426, allocations: 43.23 kB / 0.9516 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.7426, allocations: 11.44 kB / 0.9516 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.626e-05/0.7427, allocations: 30.19 kB / 0.9516 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.854e-05/0.7427, allocations: 9.672 kB / 0.9516 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.272e-05/0.7428, allocations: 48.19 kB / 0.9517 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.7429, allocations: 112.7 kB / 0.9518 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.7429, allocations: 4 kB / 0.9518 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7429, allocations: 3.938 kB / 0.9518 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.7429, allocations: 0 / 0.9518 GB, free: 7.211 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.0005109/0.7434, allocations: 425.4 kB / 0.9522 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.7435, allocations: 9.125 kB / 0.9522 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.43e-05/0.7435, allocations: 36.03 kB / 0.9522 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.15e-05/0.7436, allocations: 14.02 kB / 0.9522 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.679e-05/0.7436, allocations: 176.2 kB / 0.9524 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.7437, allocations: 7.188 kB / 0.9524 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.386e-05/0.7437, allocations: 6.031 kB / 0.9524 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.7439, allocations: 80.2 kB / 0.9525 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.744, allocations: 3.938 kB / 0.9525 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.744, allocations: 4 kB / 0.9525 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.744, allocations: 1.656 kB / 0.9525 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/0.7443, allocations: 74.95 kB / 0.9526 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003466/0.7446, allocations: 333.3 kB / 0.9529 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.7448, allocations: 52.48 kB / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.745, allocations: 52.91 kB / 0.953 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.745, allocations: 1.25 kB / 0.953 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.7452, allocations: 100 kB / 0.9531 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.7452, allocations: 0 / 0.9531 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0005516/0.7458, allocations: 162.8 kB / 0.9532 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.576e-05/0.7458, allocations: 52.5 kB / 0.9533 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.669e-05/0.7459, allocations: 126.9 kB / 0.9534 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.123e-05/0.7459, allocations: 32.67 kB / 0.9534 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.665e-05/0.746, allocations: 86.98 kB / 0.9535 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.746, allocations: 22.41 kB / 0.9535 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.633e-05/0.7461, allocations: 35.59 kB / 0.9536 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.622e-05/0.7461, allocations: 320.1 kB / 0.9539 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.7463, allocations: 64.94 kB / 0.9539 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.7465, allocations: 84.64 kB / 0.954 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000324/0.7469, allocations: 137.2 kB / 0.9542 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.7469, allocations: 1.438 kB / 0.9542 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000488/0.7474, allocations: 219.2 kB / 0.9544 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.7474, allocations: 37.11 kB / 0.9544 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.7474, allocations: 0 / 0.9544 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.7474, allocations: 5.5 kB / 0.9544 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.7476, allocations: 19.25 kB / 0.9544 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.7476, allocations: 1.344 kB / 0.9544 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002393/0.7478, allocations: 42.05 kB / 0.9545 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.068e-05/0.7479, allocations: 6.156 kB / 0.9545 GB, free: 4.758 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.676e-05/0.7479, allocations: 126.6 kB / 0.9546 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.42e-05/0.7479, allocations: 3.438 kB / 0.9546 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.748, allocations: 9.344 kB / 0.9546 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.748, allocations: 1.125 kB / 0.9546 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.748, allocations: 1.219 kB / 0.9546 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.748, allocations: 4 kB / 0.9546 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.091e-05/0.7481, allocations: 189.5 kB / 0.9548 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.7481, allocations: 1.094 kB / 0.9548 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.7482, allocations: 18.27 kB / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.7482, allocations: 1.219 kB / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.7482, allocations: 1.062 kB / 0.9548 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.7482, allocations: 4 kB / 0.9548 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7482, allocations: 1.125 kB / 0.9548 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003637/0.7486, allocations: 160.6 kB / 0.955 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.832e-05/0.7486, allocations: 82.27 kB / 0.9551 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.7487, allocations: 1.031 kB / 0.9551 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/0.7488, allocations: 15 kB / 0.9551 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.7488, allocations: 7.156 kB / 0.9551 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.7488, allocations: 2.125 kB / 0.9551 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.749e-05/0.7489, allocations: 98.52 kB / 0.9552 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7489, allocations: 0 / 0.9552 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002278/0.7491, allocations: 28.2 kB / 0.9552 GB, free: 4.059 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.0005481/0.7497, allocations: 0.692 MB / 0.9559 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004403/0.7501, allocations: 193.5 kB / 0.9561 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.7501, allocations: 1.031 kB / 0.9561 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001674/0.7503, allocations: 51.14 kB / 0.9561 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.7505, allocations: 7.344 kB / 0.9561 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.7523, allocations: 1.641 MB / 0.9577 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.59e-05/0.7524, allocations: 0.6954 MB / 0.9584 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.951e-05/0.7525, allocations: 3.312 kB / 0.9584 GB, free: 1.102 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.7525, allocations: 22.95 kB / 0.9584 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7525, allocations: 0 / 0.9584 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0193/0.7718, allocations: 2.469 MB / 0.9608 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001892/0.772, allocations: 203.4 kB / 0.961 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.558, allocations: 0 / 0.961 GB, free: 15.59 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