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.007259/0.007259, allocations: 99.91 kB / 15.73 MB, free: 6.023 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.001675/0.001675, allocations: 187.6 kB / 16.67 MB, free: 5.961 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.184 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.351/2.351, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 65.78 kB / 0.9504 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2845, allocations: 140.4 MB / 1.088 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001931/0.2865, allocations: 0.7912 MB / 1.088 GB, free: 1.195 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001601/0.2881, allocations: 1.149 MB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.715e-05/0.2882, allocations: 0 / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.04e-05/0.2883, allocations: 3.938 kB / 1.089 GB, free: 28 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 8.872e-05/0.2884, allocations: 15.86 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006147/0.289, allocations: 137.2 kB / 1.09 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000233/0.2892, allocations: 131.7 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.2894, allocations: 12 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.2895, allocations: 59.81 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.2896, allocations: 51.88 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.2897, allocations: 8 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.716e-05/0.2898, allocations: 23.98 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.967e-05/0.2898, allocations: 15.92 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.953e-05/0.2899, allocations: 39.84 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.2901, allocations: 130.5 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2901, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.054e-06/0.2901, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.2901, allocations: 0 / 1.09 GB, free: 15.42 MB / 0.8575 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.0007098/0.2908, allocations: 421.8 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.2909, allocations: 11.97 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.908e-05/0.2909, allocations: 34.75 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.911e-05/0.291, allocations: 8.844 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.2911, allocations: 183.3 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.2911, allocations: 8.375 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.2912, allocations: 4.375 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.2914, allocations: 82.19 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2915, allocations: 3.938 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.2915, allocations: 0 / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.2915, allocations: 0 / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003119/0.2918, allocations: 79.86 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004323/0.2922, allocations: 320.8 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001943/0.2924, allocations: 54.47 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.2926, allocations: 52.91 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.2926, allocations: 0 / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003236/0.293, allocations: 95.28 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.293, allocations: 0 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006826/0.2937, allocations: 161.5 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.2937, allocations: 55.41 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001409/0.2939, allocations: 122.1 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.2939, allocations: 29.64 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.142e-05/0.294, allocations: 96.03 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.992e-05/0.2941, allocations: 23.75 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.404e-05/0.2942, allocations: 29.7 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001766/0.2944, allocations: 322.8 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/0.2946, allocations: 63.89 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.2948, allocations: 86.58 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003895/0.2952, allocations: 144.2 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.2953, allocations: 0 / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005922/0.2958, allocations: 207.4 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.458e-05/0.2959, allocations: 45.62 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2959, allocations: 144 / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.593e-05/0.296, allocations: 7.984 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.2961, allocations: 15.98 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.2961, allocations: 3.984 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.2964, allocations: 44 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.685e-05/0.2964, allocations: 8 kB / 1.093 GB, free: 12.38 MB / 0.8575 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 0.0001195/0.2965, allocations: 121.8 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.2966, allocations: 3.906 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.69e-05/0.2966, allocations: 16.36 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2966, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2966, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.2966, allocations: 0 / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.2968, allocations: 181.6 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2968, allocations: 0 / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.2969, allocations: 27.91 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2969, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.2969, allocations: 4 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.297, allocations: 3.938 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.297, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004213/0.2974, allocations: 152.9 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.912e-05/0.2974, allocations: 77.11 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.2975, allocations: 0 / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.593e-05/0.2976, allocations: 15.98 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.185e-05/0.2976, allocations: 7.984 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.193e-06/0.2976, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.181e-05/0.2977, allocations: 103.3 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.41e-07/0.2977, allocations: 0 / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002339/0.298, allocations: 27.94 kB / 1.093 GB, free: 11.55 MB / 0.8575 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.0008039/0.2988, allocations: 0.706 MB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005469/0.2993, allocations: 183.2 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.2993, allocations: 0 / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.2995, allocations: 48.08 kB / 1.094 GB, free: 10.58 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.2998, allocations: 23.97 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002532/0.3024, allocations: 1.625 MB / 1.096 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.3027, allocations: 0.6885 MB / 1.097 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.249e-05/0.3028, allocations: 4 kB / 1.097 GB, free: 8.109 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.226e-05/0.3028, allocations: 23.42 kB / 1.097 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of SimCode: time 1.062e-06/0.3028, allocations: 0 / 1.097 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.3209, allocations: 2.737 MB / 1.099 GB, free: 5.461 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.289, allocations: 9.797 kB / 1.099 GB, free: 5.453 MB / 0.8575 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