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.005629/0.005629, allocations: 108.4 kB / 15.74 MB, free: 6.453 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.001211/0.001211, allocations: 196.6 kB / 16.67 MB, free: 6.355 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.491/2.491, allocations: 390.3 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 69.09 kB / 0.9504 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3004, allocations: 140.4 MB / 1.088 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.003167/0.3037, allocations: 0.7887 MB / 1.088 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002566/0.3063, allocations: 1.149 MB / 1.089 GB, free: 0 / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.3064, allocations: 112 / 1.089 GB, free: 16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.455e-05/0.3065, allocations: 7.875 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.3067, allocations: 11.88 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008367/0.3075, allocations: 130.6 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002815/0.3078, allocations: 135.8 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.3079, allocations: 19.92 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.3081, allocations: 43.91 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000157/0.3082, allocations: 55.86 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.671e-05/0.3083, allocations: 8 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.3084, allocations: 35.92 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.885e-05/0.3085, allocations: 11.92 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.265e-05/0.3086, allocations: 43.86 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002837/0.3089, allocations: 118.5 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3089, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.823e-06/0.3089, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.3089, allocations: 0 / 1.09 GB, free: 15.39 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.0009136/0.3098, allocations: 421.8 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.3099, allocations: 16.03 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.715e-05/0.31, allocations: 34.75 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.371e-05/0.31, allocations: 8.844 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.3102, allocations: 180.2 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.3103, allocations: 8.312 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.615e-05/0.3103, allocations: 4.375 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.3107, allocations: 78.2 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.3107, allocations: 7.875 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.589e-05/0.3107, allocations: 8 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3108, allocations: 0 / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004194/0.3112, allocations: 67.92 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006122/0.3118, allocations: 324.7 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002667/0.3121, allocations: 58.48 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.3123, allocations: 44.91 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.149e-05/0.3124, allocations: 0 / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003707/0.3127, allocations: 95.34 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.963e-06/0.3128, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0008967/0.3137, allocations: 165.4 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.3137, allocations: 55.41 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.3139, allocations: 121.2 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.571e-05/0.3139, allocations: 33.69 kB / 1.092 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.768e-05/0.314, allocations: 100.1 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.3141, allocations: 15.75 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.3142, allocations: 33.7 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.3144, allocations: 330.7 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003295/0.3147, allocations: 59.94 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003925/0.3151, allocations: 78.53 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005758/0.3157, allocations: 144.1 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3157, allocations: 4.25 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0008263/0.3166, allocations: 211.2 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.359e-05/0.3166, allocations: 33.7 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.3166, allocations: 4 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.3167, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.3169, allocations: 20.05 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.3169, allocations: 7.984 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.3173, allocations: 35.95 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.3173, allocations: 7.938 kB / 1.093 GB, free: 12.36 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.0001363/0.3175, allocations: 121.8 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.3175, allocations: 7.906 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.676e-05/0.3176, allocations: 12.36 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.3176, allocations: 7.984 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3176, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.3176, allocations: 0 / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002464/0.3179, allocations: 193.5 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3179, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.318, allocations: 15.97 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.318, allocations: 0 / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.3181, allocations: 4 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.3181, allocations: 0 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3181, allocations: 80 / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005254/0.3186, allocations: 160.8 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.312e-05/0.3187, allocations: 77.11 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.338e-05/0.3187, allocations: 4 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.3188, allocations: 7.984 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.486e-05/0.3189, allocations: 15.98 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.176e-05/0.3189, allocations: 4 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.39e-05/0.319, allocations: 91.27 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.91e-07/0.319, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003682/0.3194, allocations: 27.84 kB / 1.093 GB, free: 11.52 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.0009901/0.3204, allocations: 0.7022 MB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000698/0.3211, allocations: 179.4 kB / 1.094 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3211, allocations: 8.062 kB / 1.094 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.3214, allocations: 51.89 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.3217, allocations: 19.97 kB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003338/0.3251, allocations: 1.629 MB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.3254, allocations: 0.6924 MB / 1.097 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.311e-05/0.3255, allocations: 0 / 1.097 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.34e-05/0.3255, allocations: 23.42 kB / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of SimCode: time 5.51e-07/0.3255, allocations: 0 / 1.097 GB, free: 8.055 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.35, allocations: 2.69 MB / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/8.099, allocations: 5.375 kB / 1.099 GB, free: 5.473 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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