Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.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.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract",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.004796/0.004796, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001407/0.001407, allocations: 192.7 kB / 16.67 MB, free: 5.969 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.637/2.637, allocations: 482.6 MB / 0.7551 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 72.05 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2936, allocations: 162.3 MB / 1.242 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Subtract): time 0.001684/0.2954, allocations: 0.7061 MB / 1.243 GB, free: 8.129 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0008272/0.2962, allocations: 0.8043 MB / 1.243 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.121e-05/0.2962, allocations: 0 / 1.243 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.593e-05/0.2963, allocations: 3.938 kB / 1.243 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.3e-05/0.2963, allocations: 3.938 kB / 1.243 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 5.368e-05/0.2964, allocations: 15.98 kB / 1.243 GB, free: 7.289 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.189e-05/0.2965, allocations: 43.91 kB / 1.243 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.493e-05/0.2966, allocations: 9.344 kB / 1.243 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.995e-05/0.2966, allocations: 31.84 kB / 1.243 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.307e-05/0.2967, allocations: 19.91 kB / 1.244 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.494e-05/0.2967, allocations: 4 kB / 1.244 GB, free: 7.184 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.117e-05/0.2967, allocations: 4 kB / 1.244 GB, free: 7.18 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.531e-05/0.2967, allocations: 4 kB / 1.244 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.272e-05/0.2968, allocations: 27.86 kB / 1.244 GB, free: 7.148 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 8.697e-05/0.2969, allocations: 40.09 kB / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2969, allocations: 0 / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.293e-06/0.2969, allocations: 0 / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.2969, allocations: 0 / 1.244 GB, free: 7.109 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004886/0.2974, allocations: 359.3 kB / 1.244 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.2974, allocations: 12.02 kB / 1.244 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.924e-05/0.2975, allocations: 38.75 kB / 1.244 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.899e-05/0.2975, allocations: 4.938 kB / 1.244 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.2976, allocations: 172.3 kB / 1.244 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.2976, allocations: 4.375 kB / 1.244 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.2977, allocations: 4.375 kB / 1.244 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.2979, allocations: 70.16 kB / 1.244 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.2979, allocations: 3.938 kB / 1.244 GB, free: 6.352 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.218e-06/0.2979, allocations: 7.922 kB / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.2979, allocations: 0 / 1.244 GB, free: 6.344 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002883/0.2982, allocations: 63.94 kB / 1.244 GB, free: 6.281 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003239/0.2986, allocations: 272.8 kB / 1.245 GB, free: 5.965 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.2987, allocations: 54.47 kB / 1.245 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.2989, allocations: 44.92 kB / 1.245 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.2989, allocations: 4 kB / 1.245 GB, free: 5.852 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.299, allocations: 34.55 kB / 1.245 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.299, allocations: 0 / 1.245 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005184/0.2995, allocations: 129.5 kB / 1.245 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.2995, allocations: 51.41 kB / 1.245 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.871e-05/0.2996, allocations: 117.8 kB / 1.245 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.2997, allocations: 25.7 kB / 1.245 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.377e-05/0.2997, allocations: 84.12 kB / 1.245 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.2997, allocations: 11.91 kB / 1.245 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.2998, allocations: 17.72 kB / 1.245 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.2999, allocations: 314.8 kB / 1.245 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001488/0.3001, allocations: 35.95 kB / 1.245 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.3002, allocations: 27.97 kB / 1.245 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002773/0.3005, allocations: 76.72 kB / 1.246 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3005, allocations: 0 / 1.246 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003098/0.3008, allocations: 93.62 kB / 1.246 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.3008, allocations: 7.938 kB / 1.246 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3008, allocations: 0 / 1.246 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.3008, allocations: 3.938 kB / 1.246 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.301, allocations: 24.3 kB / 1.246 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.489e-06/0.301, allocations: 0 / 1.246 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.457e-05/0.3011, allocations: 11.98 kB / 1.246 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.3011, allocations: 0 / 1.246 GB, free: 4.734 MB / 0.9669 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 (3): * Single equations (assignments): 3 * 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 7.7e-05/0.3011, allocations: 113.8 kB / 1.246 GB, free: 4.613 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.3012, allocations: 7.953 kB / 1.246 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.375e-05/0.3012, allocations: 7.891 kB / 1.246 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3012, allocations: 4 kB / 1.246 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3012, allocations: 4 kB / 1.246 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.3012, allocations: 3.984 kB / 1.246 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.3014, allocations: 169.6 kB / 1.246 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3014, allocations: 3.938 kB / 1.246 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.828e-05/0.3015, allocations: 11.98 kB / 1.246 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.3015, allocations: 0 / 1.246 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.3015, allocations: 0 / 1.246 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.3015, allocations: 8 kB / 1.246 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3015, allocations: 0 / 1.246 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000362/0.3019, allocations: 203.3 kB / 1.246 GB, free: 4.129 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/0.302, allocations: 81.06 kB / 1.246 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.302, allocations: 0 / 1.246 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001059/0.3021, allocations: 11.98 kB / 1.246 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.607e-05/0.3021, allocations: 15.98 kB / 1.246 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.3021, allocations: 0 / 1.246 GB, free: 4.004 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.659e-05/0.3022, allocations: 79.59 kB / 1.246 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3022, allocations: 0 / 1.246 GB, free: 3.926 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002087/0.3024, allocations: 15.94 kB / 1.246 GB, free: 3.91 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (3): * Single equations (assignments): 3 * 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.0006789/0.3031, allocations: 0.7324 MB / 1.247 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003266/0.3034, allocations: 67.92 kB / 1.247 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3034, allocations: 0 / 1.247 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.3036, allocations: 39.95 kB / 1.247 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.3039, allocations: 6.422 kB / 1.247 GB, free: 3.043 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003909/0.3043, allocations: 155 kB / 1.247 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000273/0.3045, allocations: 0.6807 MB / 1.248 GB, free: 2.145 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.971e-05/0.3046, allocations: 7.938 kB / 1.248 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.3046, allocations: 15.38 kB / 1.248 GB, free: 2.121 MB / 0.9669 GB Notification: Performance of SimCode: time 3.4e-07/0.3046, allocations: 4 kB / 1.248 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9549/1.26, allocations: 1.626 MB / 1.25 GB, free: 0.5898 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/12.2, allocations: 18.39 kB / 1.25 GB, free: 0.5742 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Subtract.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Subtract.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches