Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Reals.Validation.Line,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Line,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Line",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.006521/0.006521, allocations: 102 kB / 15.73 MB, free: 6.441 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.001287/0.001287, allocations: 197.7 kB / 16.67 MB, free: 6.352 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.953/2.953, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 68.12 kB / 1.083 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2891, allocations: 162.2 MB / 1.242 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Line): time 0.001958/0.2911, allocations: 0.8914 MB / 1.242 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.2923, allocations: 0.8935 MB / 1.243 GB, free: 8.34 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.147e-05/0.2923, allocations: 3.938 kB / 1.243 GB, free: 8.336 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 4.081e-05/0.2924, allocations: 11.86 kB / 1.243 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.687e-05/0.2925, allocations: 7.875 kB / 1.243 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.2927, allocations: 67.84 kB / 1.243 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002002/0.2929, allocations: 139.8 kB / 1.243 GB, free: 8.113 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.293, allocations: 61.44 kB / 1.244 GB, free: 8.051 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.691e-05/0.2931, allocations: 51.8 kB / 1.244 GB, free: 8 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.826e-05/0.2932, allocations: 51.75 kB / 1.244 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.366e-05/0.2932, allocations: 16 kB / 1.244 GB, free: 7.934 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.632e-05/0.2933, allocations: 16 kB / 1.244 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.721e-05/0.2933, allocations: 43.72 kB / 1.244 GB, free: 7.875 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.482e-05/0.2934, allocations: 63.64 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.2936, allocations: 135.4 kB / 1.244 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2936, allocations: 3.984 kB / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of FrontEnd: time 5.49e-06/0.2936, allocations: 0 / 1.244 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.668e-06/0.2936, allocations: 3.938 kB / 1.244 GB, free: 7.672 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006488/0.2942, allocations: 443 kB / 1.244 GB, free: 7.188 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.472e-05/0.2943, allocations: 8.031 kB / 1.244 GB, free: 7.18 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.088e-05/0.2943, allocations: 46.73 kB / 1.244 GB, free: 7.125 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.2944, allocations: 16.84 kB / 1.244 GB, free: 7.109 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002554/0.2946, allocations: 224 kB / 1.245 GB, free: 6.852 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.2947, allocations: 8.375 kB / 1.245 GB, free: 6.844 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.502e-05/0.2947, allocations: 16.38 kB / 1.245 GB, free: 6.828 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003238/0.295, allocations: 154.6 kB / 1.245 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.2951, allocations: 3.938 kB / 1.245 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.2951, allocations: 4 kB / 1.245 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.2951, allocations: 4 kB / 1.245 GB, free: 6.66 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.2954, allocations: 127.9 kB / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007698/0.2962, allocations: 492.3 kB / 1.245 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.2964, allocations: 90.42 kB / 1.245 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.2966, allocations: 44.83 kB / 1.246 GB, free: 5.859 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.2966, allocations: 4 kB / 1.246 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.2966, allocations: 30.56 kB / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.2966, allocations: 0 / 1.246 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0004798/0.2971, allocations: 165.7 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.2972, allocations: 55.41 kB / 1.246 GB, free: 5.582 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.2974, allocations: 191.5 kB / 1.246 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.2974, allocations: 25.7 kB / 1.246 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/0.2975, allocations: 116 kB / 1.246 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.2975, allocations: 31.7 kB / 1.246 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.768e-05/0.2976, allocations: 38.08 kB / 1.246 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.2977, allocations: 322.8 kB / 1.246 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.2979, allocations: 39.97 kB / 1.246 GB, free: 4.793 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.298, allocations: 47.97 kB / 1.247 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002469/0.2983, allocations: 96.33 kB / 1.247 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.2983, allocations: 7.938 kB / 1.247 GB, free: 4.645 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003301/0.2986, allocations: 149.5 kB / 1.247 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.2986, allocations: 8 kB / 1.247 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2987, allocations: 3.938 kB / 1.247 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.2987, allocations: 0 / 1.247 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.2988, allocations: 27.98 kB / 1.247 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.2988, allocations: 3.938 kB / 1.247 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.299, allocations: 19.88 kB / 1.247 GB, free: 4.43 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.299, allocations: 8 kB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 9.615e-05/0.2991, allocations: 121.8 kB / 1.247 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.2991, allocations: 15.91 kB / 1.247 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003677/0.2995, allocations: 139 kB / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2995, allocations: 0 / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2995, allocations: 0 / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2995, allocations: 0 / 1.247 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006366/0.3002, allocations: 464.8 kB / 1.248 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3002, allocations: 0 / 1.248 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.3003, allocations: 23.92 kB / 1.248 GB, free: 3.586 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3003, allocations: 0 / 1.248 GB, free: 3.586 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.796e-06/0.3003, allocations: 4 kB / 1.248 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3003, allocations: 96 / 1.248 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.3004, allocations: 8 kB / 1.248 GB, free: 3.574 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003624/0.3007, allocations: 241.9 kB / 1.248 GB, free: 3.312 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.3008, allocations: 93.02 kB / 1.248 GB, free: 3.203 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.04e-05/0.3008, allocations: 7.984 kB / 1.248 GB, free: 3.195 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.301, allocations: 19.98 kB / 1.248 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.728e-05/0.301, allocations: 7.938 kB / 1.248 GB, free: 3.168 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.301, allocations: 7.984 kB / 1.248 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001278/0.3012, allocations: 149.1 kB / 1.248 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3012, allocations: 192 / 1.248 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002514/0.3014, allocations: 20 kB / 1.248 GB, free: 2.996 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0007126/0.3021, allocations: 0.7773 MB / 1.249 GB, free: 2.184 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003148/0.3025, allocations: 107.9 kB / 1.249 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3025, allocations: 0 / 1.249 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.3026, allocations: 47.91 kB / 1.249 GB, free: 2.031 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.3029, allocations: 19.94 kB / 1.249 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.3053, allocations: 1.892 MB / 1.251 GB, free: 12 kB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.485/0.7903, allocations: 0.7042 MB / 1.252 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.379e-05/0.7904, allocations: 14.62 kB / 1.252 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.147e-05/0.7905, allocations: 42.72 kB / 1.252 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of SimCode: time 6.01e-07/0.7905, allocations: 0 / 1.252 GB, free: 14.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.8135, allocations: 2.819 MB / 1.254 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.64/8.454, allocations: 6.469 kB / 1.254 GB, free: 14.12 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Line.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Line.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Line.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches