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.01373/0.01373, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.002974/0.002974, allocations: 194.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.748/2.748, allocations: 222.9 MB / 240.4 MB, free: 4.316 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 4.708/4.708, allocations: 390.3 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001918, allocations: 69.33 kB / 0.9505 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6132/0.6151, allocations: 140.4 MB / 1.088 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.005822/0.6211, allocations: 0.7848 MB / 1.088 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003114/0.6243, allocations: 1.145 MB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.6244, allocations: 4 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.798e-05/0.6245, allocations: 11.88 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.6248, allocations: 7.875 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008758/0.6257, allocations: 138.9 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.6261, allocations: 127.8 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.6262, allocations: 15.98 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001735/0.6264, allocations: 55.78 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.6266, allocations: 51.86 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.748e-05/0.6267, allocations: 12 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.6268, allocations: 19.98 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.326e-05/0.6269, allocations: 19.92 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.627, allocations: 43.84 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.6273, allocations: 123.9 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.6273, allocations: 0 / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.456e-06/0.6273, allocations: 0 / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.6273, allocations: 0 / 1.09 GB, free: 15.36 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.001366/0.6287, allocations: 424.9 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 8.168e-05/0.6288, allocations: 8.031 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001279/0.629, allocations: 38.73 kB / 1.09 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.369e-05/0.629, allocations: 12.89 kB / 1.09 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.6293, allocations: 176.2 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.6294, allocations: 8.375 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.6294, allocations: 4.375 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.6298, allocations: 78.19 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.6299, allocations: 3.938 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.852e-05/0.6299, allocations: 4 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.6299, allocations: 0 / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004117/0.6304, allocations: 75.92 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008224/0.6312, allocations: 336.6 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.6315, allocations: 54.48 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002517/0.6317, allocations: 44.91 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.6318, allocations: 4 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000601/0.6324, allocations: 91.34 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.973e-06/0.6324, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0008495/0.6333, allocations: 165.5 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.092e-05/0.6334, allocations: 51.41 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.6336, allocations: 133.2 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0001266/0.6337, allocations: 29.7 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.6338, allocations: 92.14 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.657e-05/0.6339, allocations: 23.84 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.634, allocations: 29.7 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000638/0.6347, allocations: 322.7 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.6351, allocations: 59.94 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003446/0.6354, allocations: 86.52 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007592/0.6362, allocations: 140.1 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.6362, allocations: 4 kB / 1.092 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.001063/0.6373, allocations: 211.2 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 7.249e-05/0.6374, allocations: 29.7 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.6374, allocations: 4 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.649e-05/0.6374, allocations: 0 / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.6377, allocations: 23.91 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.6378, allocations: 320 / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003591/0.6381, allocations: 47.97 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.711e-05/0.6382, allocations: 8 kB / 1.093 GB, free: 12.32 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.0002614/0.6385, allocations: 125.7 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.6385, allocations: 7.953 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.039e-05/0.6386, allocations: 12.38 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.603e-06/0.6386, allocations: 0 / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/0.6387, allocations: 0 / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.6387, allocations: 4 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000385/0.6391, allocations: 181.6 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.6391, allocations: 3.984 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.6393, allocations: 19.98 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.6393, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.6393, allocations: 0 / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.6393, allocations: 7.938 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.6393, allocations: 0 / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006801/0.64, allocations: 160.9 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.6402, allocations: 81.06 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.6402, allocations: 4 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.6404, allocations: 15.97 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/0.6405, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.6405, allocations: 4 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000185/0.6407, allocations: 103.3 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.01e-07/0.6407, allocations: 0 / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004394/0.6412, allocations: 20 kB / 1.093 GB, free: 11.48 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.001886/0.6431, allocations: 0.6926 MB / 1.094 GB, free: 10.76 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008281/0.6439, allocations: 187.4 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.644, allocations: 3.938 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000282/0.6442, allocations: 52.28 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004358/0.6447, allocations: 20.11 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004243/0.649, allocations: 1.627 MB / 1.096 GB, free: 8.766 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005399/0.6495, allocations: 0.6885 MB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.48e-05/0.6496, allocations: 11.98 kB / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.6498, allocations: 19.44 kB / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of SimCode: time 2.024e-06/0.6498, allocations: 0 / 1.097 GB, free: 8.02 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04019/0.69, allocations: 2.68 MB / 1.099 GB, free: 5.445 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/13.14, allocations: 14.02 kB / 1.099 GB, free: 5.438 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